-
Notifications
You must be signed in to change notification settings - Fork 6
Add option to create markdown formatted docs for each scenario. #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
0cb5d65
Add option to create markdown formatted docs for each scenario.
atti92 3251996
review change
atti92 a213638
add nicer example
atti92 d959f58
html format the docs
atti92 e2ab835
embed html images in report
atti92 1a373b8
include png for build
atti92 feb0867
Move docs
atti92 3569309
update git
atti92 3ecd87a
push image
atti92 c4c83af
try reupload
atti92 73ae885
Add landing page
atti92 0bf976b
Update src/openutm_verification/core/execution/dependencies.py
atti92 7735bf4
Apply suggestions from code review
atti92 87db2c4
fix duplication
atti92 e05703f
Merge branch 'main' into scenario-markdown-docs
atti92 6357a70
fix conflict resolution
atti92 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,10 @@ | ||
| # Set default text file line endings to LF | ||
| * text eol=lf | ||
|
|
||
| # Binary files | ||
| *.png binary | ||
| *.jpg binary | ||
| *.jpeg binary | ||
| *.gif binary | ||
| *.ico binary | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # OpenUTM Verification Scenarios | ||
|
|
||
| ## Overview | ||
|
|
||
| This section documents the various test scenarios used to verify UTM functionality. | ||
|
|
||
| ## Scenarios | ||
|
|
||
| * [Fire Response](scenarios/fire_response.md) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Fire Response | ||
|
|
||
| **Demonstration Goals:** UTM services allow a diverse set of users to appropriately coordinate their responses to an emergency. | ||
|
|
||
| <table style="width:100%; border-collapse: collapse;"> | ||
| <thead> | ||
| <tr style="background-color: #00684a; color: white;"> | ||
| <th style="padding: 10px; text-align: left; width: 50%;">Details</th> | ||
| <th style="padding: 10px; text-align: center; width: 50%;">Map</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr> | ||
| <td style="background-color: #d1f0e6; vertical-align: top; padding: 15px; color: black;"> | ||
| <ul style="margin-top: 0;"> | ||
| <li>A new recreational flyer launches a VLOS flight for the first time in a park.</li> | ||
| <li>The fire department is alerted to a possible fire and sends out a drone to quickly assess the scale of the fire. The recreational flyer is notified of the fire department drone and decides to begin landing.</li> | ||
| <li>While landing, the recreational flyer briefly leaves the operation area triggering a notification to the fire department UTMSP but quickly returns to his area once notified and completes landing. Following the notification, the Fire Department uses RID to identify the recreational operator and following landing a member of the fire department can interact with the pilot advising him on other locations he might be able to fly in further from the fire.</li> | ||
| <li>When the fire is verified, the fire department informs all operators nearby of the fire via dynamic restrictions. A news organisation comes to cover the fire and is informed of the fire area via the dynamic restriction. After seeing the dynamic restriction constraint, the news operator plans their operation around it to avoid a conflict.</li> | ||
| <li>Seeing a nearby drone, the fire department is quickly able to determine that it belongs to a news organisation (with previously established processes with the fire department).</li> | ||
| <li>In response to a Fire Department request an air ambulance is dispatched to site and the news operator in the area makes accommodations for the helicopter after being informed of its imminent arrival via a dynamic restriction.</li> | ||
| </ul> | ||
| </td> | ||
| <td style="vertical-align: top; padding: 0; text-align: center; background-color: white;"> | ||
| <img src="fire_response.png" alt="Fire Response Map" style="width: 100%; height: auto; display: block;"> | ||
| </td> | ||
| </tr> | ||
| </tbody> | ||
| </table> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| from openutm_verification.core.clients.flight_blender.flight_blender_client import FlightBlenderClient | ||
| from openutm_verification.core.execution.config_models import DataFiles | ||
| from openutm_verification.scenarios.registry import register_scenario | ||
|
|
||
|
|
||
| @register_scenario("fire_response") | ||
| def test_fire_response(fb_client: FlightBlenderClient, data_files: DataFiles) -> None: | ||
| """Runs the Fire Response scenario.""" | ||
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| from pathlib import Path | ||
|
|
||
|
|
||
| def get_docs_directory() -> Path | None: | ||
| """ | ||
| Determines the directory containing documentation and images. | ||
|
|
||
| Strategies: | ||
| 1. Installed package location: openutm_verification/docs/ | ||
| 2. Development location: project_root/docs/ | ||
| """ | ||
| # 1. Try installed package location: src/openutm_verification/docs/scenarios/ | ||
| # This file is in src/openutm_verification/utils/ | ||
| package_root = Path(__file__).parent.parent | ||
| docs_dir = package_root / "docs" / "scenarios" | ||
|
|
||
| if docs_dir.exists(): | ||
| return docs_dir | ||
|
|
||
| # 2. Try development location: project_root/docs/scenarios/ | ||
| # src/openutm_verification/utils/ -> src/openutm_verification/ -> src/ -> root/ (4 levels) | ||
| docs_dir = Path(__file__).parents[3] / "docs" / "scenarios" | ||
| if docs_dir.exists(): | ||
| return docs_dir | ||
|
|
||
| return None |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.