Skip to content

Commit

Permalink
Merge branch 'main' into remove_elevation_from_osm
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Jan 31, 2025
2 parents b51409e + 2b15ad5 commit 2bc724f
Show file tree
Hide file tree
Showing 2 changed files with 39 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"
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):
"""RBW attached to the EMI receiver.
Returns
-------
str
RBW setting.
"""
return self._legacy_props["context"].get("RBW", None)

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

@property
def rbw_factor(self):
"""RBW Factor attached to the EMI receiver.
Returns
-------
str
RBW Factor setting.
"""
return self._legacy_props["context"].get("RBW_factor", None)

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

@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
2 changes: 2 additions & 0 deletions tests/system/general/test_12_PostProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,8 @@ def test_76_emi_receiver(self, emi_receiver_test):
emi_receiver_test.analyze()
new_report = emi_receiver_test.post.reports_by_category.emi_receiver()
new_report.band = "2"
new_report.rbw = "2"
new_report.rbw_factor = "0"
new_report.emission = "RE"
new_report.time_start = "1ns"
new_report.time_stop = "2us"
Expand Down

0 comments on commit 2bc724f

Please sign in to comment.