Skip to content

Commit

Permalink
Added support for 25R1 EMI Receiver component RBW and RBW Factor feat…
Browse files Browse the repository at this point in the history
…ures.
  • Loading branch information
cmesibov committed Jan 8, 2025
1 parent b47ea37 commit e1ec0a5
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion src/ansys/aedt/core/visualization/report/emi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"""


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.visualization.report.common import CommonReport
Expand All @@ -53,6 +54,8 @@ def __init__(self, app, setup_name, expressions=None):
self._emission = "CE"
self.overlap_rate = 95
self.band = "0"
self.rbw = "0"
self.rbw_factor = "0"

Check warning on line 58 in src/ansys/aedt/core/visualization/report/emi.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/visualization/report/emi.py#L57-L58

Added lines #L57 - L58 were not covered by tests
self.primary_sweep = "Freq"

@property
Expand Down Expand Up @@ -88,6 +91,36 @@ def band(self):
def band(self, value):
self._legacy_props["context"]["band"] = value

@property
def rbw(self):

Check warning on line 95 in src/ansys/aedt/core/visualization/report/emi.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/visualization/report/emi.py#L94-L95

Added lines #L94 - L95 were not covered by tests
"""RBW attached to the EMI receiver.
Returns
-------
str
RBW setting.
"""
return self._legacy_props["context"].get("RBW", None)

Check warning on line 103 in src/ansys/aedt/core/visualization/report/emi.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/visualization/report/emi.py#L103

Added line #L103 was not covered by tests

@rbw.setter
def rbw(self, value):
self._legacy_props["context"]["RBW"] = value

Check warning on line 107 in src/ansys/aedt/core/visualization/report/emi.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/visualization/report/emi.py#L105-L107

Added lines #L105 - L107 were not covered by tests

@property
def rbw_factor(self):

Check warning on line 110 in src/ansys/aedt/core/visualization/report/emi.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/visualization/report/emi.py#L109-L110

Added lines #L109 - L110 were not covered by tests
"""RBW Factor attached to the EMI receiver.
Returns
-------
str
RBW Factor setting.
"""
return self._legacy_props["context"].get("RBW_factpr", None)

Check warning on line 118 in src/ansys/aedt/core/visualization/report/emi.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/visualization/report/emi.py#L118

Added line #L118 was not covered by tests

@rbw_factor.setter
def rbw_factor(self, value):
self._legacy_props["context"]["RBW_factor"] = value

Check warning on line 122 in src/ansys/aedt/core/visualization/report/emi.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/visualization/report/emi.py#L120-L122

Added lines #L120 - L122 were not covered by tests

@property
def emission(self):
"""Emission test.
Expand Down Expand Up @@ -188,7 +221,10 @@ def _context(self):
str(self.overlap_rate),
"RBW",
False,
"9000Hz",
str(self.rbw),
"RBWFactor",
False,
str(self.rbw_factor),
"SIG",
False,
"0",
Expand Down

0 comments on commit e1ec0a5

Please sign in to comment.