Skip to content

Commit

Permalink
disabling examples
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcapodi78 authored and maxcapodi78 committed Aug 8, 2023
1 parent 2447eb6 commit cb2cac6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
25 changes: 13 additions & 12 deletions examples/07-EMIT/ComputeProtectionLevels.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,28 +225,29 @@ def create_scenario_view(emis, colors, tx_radios, rx_radios):
# Get all the radios in the project
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Get lists of all transmitters and receivers in the project.
rev = emitapp.results.current_revision
rx_radios = rev.get_receiver_names()
tx_radios = rev.get_interferer_names(InterfererType.TRANSMITTERS)
domain = emitapp.results.interaction_domain()
if os.getenv("PYAEDT_DOC_GENERATION", "False") != "1":
rev = emitapp.results.current_revision
rx_radios = rev.get_receiver_names()
tx_radios = rev.get_interferer_names(InterfererType.TRANSMITTERS)
domain = emitapp.results.interaction_domain()

###############################################################################
# Classify the results
# ~~~~~~~~~~~~~~~~~~~~
# Iterate over all the transmitters and receivers and compute the power
# at the input to each receiver due to each of the transmitters. Computes
# which, if any, protection levels are exceeded by these power levels.
if os.getenv("PYAEDT_DOC_GENERATION", "False") != "1":
power_matrix=[]
all_colors=[]

power_matrix=[]
all_colors=[]
all_colors, power_matrix = rev.protection_level_classification(domain, global_levels = protection_levels)

all_colors, power_matrix = rev.protection_level_classification(domain, global_levels = protection_levels)
# Create a scenario matrix-like view for the protection levels
create_scenario_view(power_matrix, all_colors, tx_radios, rx_radios)

# Create a scenario matrix-like view for the protection levels
create_scenario_view(power_matrix, all_colors, tx_radios, rx_radios)

# Create a legend for the protection levels
create_legend_table()
# Create a legend for the protection levels
create_legend_table()

###############################################################################
# Save project and close AEDT
Expand Down
2 changes: 1 addition & 1 deletion examples/07-EMIT/EMIT_Example.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
#
# This part of the example requires Ansys AEDT 2023 R2.

if desktop_version > "2023.1":
if desktop_version > "2023.1" and os.getenv("PYAEDT_DOC_GENERATION", "False") != "1":
rev = aedtapp.results.analyze()
rx_bands = rev.get_band_names(rad2.name, TxRxMode.RX)
tx_bands = rev.get_band_names(rad3.name, TxRxMode.TX)
Expand Down

0 comments on commit cb2cac6

Please sign in to comment.