Skip to content

Commit c923dac

Browse files
committed
Remove duplicate result cat test
1 parent ecf7111 commit c923dac

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

tests/system/solvers/test_26_emit.py

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,56 +1252,6 @@ def test_23_result_categories(self, add_app):
12521252
instance.get_largest_emi_problem_type()
12531253
assert "An EMI value is not available so the largest EMI problem type is undefined." in str(e)
12541254

1255-
@pytest.mark.skipif(config["desktopVersion"] < "2025.2", reason="Skipped on versions earlier than 2025.2")
1256-
def test_23b_result_categories(self, add_app):
1257-
# set up project and run
1258-
self.aedtapp = add_app(application=Emit, project_name=generate_unique_project_name())
1259-
rad1 = self.aedtapp.modeler.components.create_component("GPS Receiver")
1260-
ant1 = self.aedtapp.modeler.components.create_component("Antenna")
1261-
ant1.move_and_connect_to(rad1)
1262-
for band in rad1.bands():
1263-
band.enabled = True
1264-
rad2 = self.aedtapp.modeler.components.create_component("Bluetooth Low Energy (LE)")
1265-
ant2 = self.aedtapp.modeler.components.create_component("Antenna")
1266-
ant2.move_and_connect_to(rad2)
1267-
rev = self.aedtapp.results.analyze()
1268-
domain = self.aedtapp.results.interaction_domain()
1269-
interaction = rev.run(domain)
1270-
1271-
result_categorization_node = rev.get_result_categorization_node()
1272-
category_props = [prop for prop in result_categorization_node.properties if prop.startswith("Cat")]
1273-
1274-
# initially all categories are enabled
1275-
for category in category_props:
1276-
assert result_categorization_node._get_property(category)
1277-
1278-
# confirm the emi value when all categories are enabled
1279-
instance = interaction.get_worst_instance(ResultType.EMI)
1280-
assert instance.get_value(ResultType.EMI) == 16.64
1281-
assert instance.get_largest_emi_problem_type() == "In-Channel: Broadband"
1282-
1283-
# disable one category and confirm the emi value changes
1284-
result_categorization_node._set_property("CatInChannelNoise", "false")
1285-
instance = interaction.get_worst_instance(ResultType.EMI)
1286-
assert instance.get_value(ResultType.EMI) == 2.0
1287-
assert instance.get_largest_emi_problem_type() == "Out-of-Channel: Tx Fundamental"
1288-
1289-
# disable another category and confirm the emi value changes
1290-
result_categorization_node._set_property("CatOutOfChannelFund", "false")
1291-
instance = interaction.get_worst_instance(ResultType.EMI)
1292-
assert instance.get_value(ResultType.EMI) == -58.0
1293-
assert instance.get_largest_emi_problem_type() == "Out-of-Channel: Tx Harmonic/Spurious"
1294-
1295-
# disable last existing category and confirm expected exceptions and error messages
1296-
result_categorization_node._set_property("CatOutOfChannelHarmSpur", "false")
1297-
instance = interaction.get_worst_instance(ResultType.EMI)
1298-
with pytest.raises(RuntimeError) as e:
1299-
instance.get_value(ResultType.EMI)
1300-
assert "Unable to evaluate value: No power received." in str(e)
1301-
with pytest.raises(RuntimeError) as e:
1302-
instance.get_largest_emi_problem_type()
1303-
assert "An EMI value is not available so the largest EMI problem type is undefined." in str(e)
1304-
13051255
@pytest.mark.skipif(config["desktopVersion"] < "2024.2", reason="Skipped on versions earlier than 2024 R2.")
13061256
@pytest.mark.skipif(config["desktopVersion"] <= "2026.1", reason="Not stable test")
13071257
def test_24_license_session(self, add_app):

0 commit comments

Comments
 (0)