Skip to content

docs: add missile-test-interference#1051

Open
apratilas wants to merge 12 commits into
mainfrom
docs/comm-radar-missile-interference
Open

docs: add missile-test-interference#1051
apratilas wants to merge 12 commits into
mainfrom
docs/comm-radar-missile-interference

Conversation

@apratilas

Copy link
Copy Markdown
Contributor

New pySTK example. This example is based off of this tutorial.

@apratilas
apratilas requested a review from a team as a code owner July 13, 2026 15:34
@github-actions github-actions Bot added the docs:examples Related to documentation examples label Jul 13, 2026
pyansys-ci-bot and others added 2 commits July 13, 2026 15:37

@jwinkle8 jwinkle8 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contributions @apratilas! I've left some comments to clean the example up a bit. Let me know if you have any questions. Thanks!

Comment thread examples/missile-test-interference.py Outdated
@@ -0,0 +1,658 @@
# # CommRadar_MissileTest_Interference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example title should describe the example's focus and be in title case. Can you adapt the STK tutorial title to make it more concise?

Let's also update the example file name accordingly when we make this change (make sure to update the path in examples.rst when you do this).

@@ -0,0 +1,658 @@
# # CommRadar_MissileTest_Interference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other PySTK examples derived from STK tutorials link to the corresponding tutorial page before the problem statement (example). We should add the same here.

Comment thread examples/missile-test-interference.py Outdated
root = stk.new_object_root()
root.new_scenario("CommRadar_MissileTest_Interference_SCRIPT")
# from ansys.stk.core.stkdesktop import STKDesktop
# stk = STKDesktop.start_application(visible=True)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused references to STKDesktop

Comment thread examples/missile-test-interference.py Outdated

# +
# root = stk.root
# root.new_scenario("CommRadar_MissileTest_Interference_SCRIPT")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code


# -

# +

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's annotate this code block with a short blurb like this.

Same comment for the 2D map widget block too.

Comment thread examples/missile-test-interference.py Outdated
globe_widget.show()
# -

# ## Analyzing the telemetry downlink's link budget (2)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# ## Analyzing the telemetry downlink's link budget (2)
# ## Analyzing the telemetry downlink's link budget

Comment thread examples/missile-test-interference.py Outdated
interference.emitters.add(sxm_10_transmitter.path)
# -

# Determining the impact of interference with a Link Budget - Interference report (3)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Determining the impact of interference with a Link Budget - Interference report (3)
# Determining the impact of interference with a Link Budget - Interference report

Comment thread examples/missile-test-interference.py Outdated
access.compute_access()
# -

# ## Creating a custom report (5)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# ## Creating a custom report (5)
# ## Creating a custom report

Comment thread examples/missile-test-interference.py Outdated
ship_receiver_filter.order = 4 # Unit
# -

# Recomputing the Link Budget - Interference report (4)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Recomputing the Link Budget - Interference report (4)
# Recomputing the Link Budget - Interference report

Comment thread examples/missile-test-interference.py Outdated
scenario.start_time, scenario.stop_time, time_step
).data_sets.to_pandas_dataframe()
link_budget_report[["ber"]]
root.save_scenario()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove save scenario commands from example

- Rename file to missile-interference-test for clarity
- Rename file in examples.rst
- Various code fixes
@codecov-commenter

codecov-commenter commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.58%. Comparing base (0df29dd) to head (a34a673).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1051   +/-   ##
=======================================
  Coverage   89.58%   89.58%           
=======================================
  Files          67       67           
  Lines      190995   190995           
  Branches     1428     1428           
=======================================
+ Hits       171106   171108    +2     
+ Misses      19474    19472    -2     
  Partials      415      415           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Code narration + comments.
- Couple of code fixes.
- Camera positioning coordinates
- variable rename
- link fix
- removal of one globe_widget
Comment thread examples/missile-interference-test.py Outdated

# ## Check for interference

# There are several methods through which you can determine the impact of interference on a system. or less complex systems, like the one in this scenario, you can compute interference effects directly in a Receiver object.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# There are several methods through which you can determine the impact of interference on a system. or less complex systems, like the one in this scenario, you can compute interference effects directly in a Receiver object.
# There are several methods through which you can determine the impact of interference on a system. For less complex systems, like the one in this scenario, you can compute interference effects directly in a Receiver object.

Comment thread examples/missile-interference-test.py Outdated
)
# -

# We have to enable interfernece before we are able to edit the interference sources:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# We have to enable interfernece before we are able to edit the interference sources:
# We have to enable interference before we are able to edit the interference sources:

# -

# Generate the link information report.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a closing # - but no opening # +

Suggested change
# +

Comment thread examples/missile-interference-test.py Outdated
radar_transmitter.frequency = 2.8
# -

# Set the power of the radar transmitter. This is does not depend on frequency or wavelength.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Set the power of the radar transmitter. This is does not depend on frequency or wavelength.
# Set the power of the radar transmitter. This does not depend on frequency or wavelength.

Comment thread examples/missile-interference-test.py Outdated


receiver_model.antenna_control.embedded_model_component_linking.set_component("Helix")
helixModel = receiver_model.antenna_control.embedded_model_component_linking.component

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use snake_case to follow the usual variable naming convention?

Variable rename to follow convention.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs:examples Related to documentation examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants