Skip to content
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

New method to detect TOFF runway #463

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

figuetbe
Copy link
Collaborator

@figuetbe figuetbe commented Oct 9, 2024

Some people in Winterthur wanted a function to detect the toff runway so here is an attempt that seems to be working reasonably.
It serves a different purpose than the takeoff_from_runway function.

src/traffic/core/flight.py Outdated Show resolved Hide resolved
src/traffic/core/flight.py Outdated Show resolved Hide resolved
@@ -2589,6 +2592,119 @@ def intersects( # type: ignore
# given here for consistency in types
...

def get_toff_runway(
Copy link
Owner

Choose a reason for hiding this comment

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

can we reuse takeoff_from_runway but pass an argument (string) with the method which can come to this one? would be more helpful to understand why we need two methods

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I find it a bit confusing because it does not return an iterable while takeoff_from_runway does

src/traffic/core/flight.py Show resolved Hide resolved
@xoolive
Copy link
Owner

xoolive commented Oct 9, 2024

Also please consider adding a test 🙇‍♂️

@figuetbe
Copy link
Collaborator Author

figuetbe commented Oct 9, 2024

Should be good to go now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants