Science Score: 75.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
    Organization dlr-ki has institutional domain (www.dlr.de)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: DLR-KI
  • Language: Python
  • Default Branch: main
  • Size: 1.07 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 6
  • Releases: 2
Created about 2 years ago · Last pushed 10 months ago
Metadata Files
Readme License Code of conduct Citation Codeowners

README.md

pyCASX Logo


pyCASX – A Python implementation of ACAS XA and ACAS XU for Flightgear

The latest version of pycasx can be found on PyPI. Information on what versions of Python pycasx supports can be found on PyPI. pre-commit.ci status Python tests (pytest) Docs status REUSE status DOI

Implementation of ACAS XA and ACAS XU with neural networks for FlightGear.

Description

Implementation of Horizontal- and VerticalCAS using neural networks for FlightGear. The HCAS and VCAS implementations are based upon Stanford Intelligent Systems Laboratory's HorizontalCAS and VerticalCAS.

Installation

Please read the following sections carefully. Please also see the documentation at https://pycasx.readthedocs.io.

Requirements

  • Python 3.8 or higher (3.12 is currently not supported)
  • FlightGear 2020.3.18 or higher

Users

If you only want to use pycasx as a command-line tool and not develop it, you can install it via pip or pipx. However, pipx is recommended, as it will install the package in an isolated environment and thus not interfere with other packages.

Installation via pipx

Ensure you have pipx installed. If not, install it via

shell python3 -m pip install --user pipx python3 -m pipx ensurepath

Afterwards, install pycasx via

shell pipx install git+https://https://github.com/DLR-KI/pycasx.git

Installation via pip

This is not recommended! Proceed at your own risk! For just using the package, pipx is recommended

First, clone the repository

shell git clone https://https://github.com/DLR-KI/pycasx.git

Optional: create yourself a virtual environment and activate it.

shell pip install virtualenv virtualenv .pycasx-venv source .pycasx-venv/bin/activate

Now, install the package via

shell pip install -e .

for basic features.

NOTE: for some virtual environments, especially with Windows, you might need to use python instead of python3 and might also need to use python -m pip instead of pip.

Development

First, clone the repository into a directory of your choice:

shell git clone https://https://github.com/DLR-KI/pycasx.git

Then, it is recommended to create a virtual environment for the software:

shell pip install virtualenv virtualenv .pycasx-venv source .pycasx-venv/bin/activate

Afterwards, install the software and its dependencies:

shell pip install -e '.[all]'

Next, install the provided pre-commit hooks:

shell pre-commit install

pre-commit

Prior to any commit, the hooks defined in .pre-commit-config.yaml will be ran. A failure in any hook will block the commit. Although, most of the errors, like formatting, will correct themselves. You just have to re-add all changed files and commit again. Be also aware, that the pipeline can take a few seconds to complete.

Alternatively, you can run the pipeline at any time to invoke changes before they block commits with

shell pre-commit run --all-files

Running the pre-commit pipeline manually once before the first commit is recommended. It will install all required tools and dependencies and you'll see what's going on. Otherwise you might be surprised why committing takes so long.

VS Code

For VS Code, we provide a set of recommended extensions. Please install them to smooth the development process. You'll find them in your extensions tab under the Workspace Recommendations section.

Usage

This package provides a command-line interface with the pycasx command. General information is available via pycasx [-h|--help] and the current version via pycasx [-v|--version]. All other commands are explained in the following.

Launching ACAS X

You can launch FlightGear via

shell pycasx launch

Once FlightGear is up and running, just run:

shell pycasx acasx

This will start the ACAS X with the default settings.

Other options

onnx or make_onnx

shell pycasx onnx

Convert the provided .nnet files into .onnx files. This is required if one wants to use the ONNX or PyTorch backend. BE WARNED: BOTH THE ONNX AND PYTORCH BACKEND ARE EXPERIMENTAL AND NOT FULLY TESTED. THE RESULTING ADVISORIES ARE NOT VALID!

launch

shell pycasx launch

Launch FlightGear with options defined in pycasx/cli/launch.py.

acasx

shell pycasx acasx

Runs the ACAS X with the default settings. This includes the API backend to fetch the advisories via REST calls. Please see the official documentation for more information.

Overwriting parameters

Every launch script has a set of default parameters. Those are handled via Hydra. Accordingly, overwriting parameters can be achieved by following the Hydra documentation.

Nevertheless, overwriting (or adding) new default properties for pycasx launch is not as straight forward as one might try. The correct syntax to overwrite (or add) a default property is

shell pycasx launch ++prop='{/autopilot/settings/target-speed-kt: 123456789}'

Citation

If you found our work useful, please cite our paper:

text @InProceedings{Christensen2024, author = {Christensen, Johann Maximilian and Anilkumar Girija, Akshay and Stefani, Thomas and Durak, Umut and Hoemann, Elena and K{\"{o}}ster, Frank and Kr{\"{u}}ger, Thomas and Hallerbach, Sven}, booktitle = {36th {IEEE} International Conference on Tools with Artificial Intelligence ({ICTAI})}, date = {2024-10}, title = {Advancing the AI-Based Realization of ACAS X Towards Real-World Application}, }

Owner

  • Name: DLR Institute of AI Safety and Security
  • Login: DLR-KI
  • Kind: organization

Citation (CITATION.cff)

# SPDX-FileCopyrightText: 2024 German Aerospace Center (DLR) <https://dlr.de>
#
# SPDX-License-Identifier: MIT
authors:
- affiliation: German Aerospace Center (DLR)
  email: johann.christensen@dlr.de
  family-names: Christensen
  given-names: Johann Maximilian
  name-particle: Johann
  orcid: https://orcid.org/0000-0001-9871-122X
- affiliation: German Aerospace Center (DLR)
  family-names: Anilkumar Girija
  given-names: Akshay
  orcid: https://orcid.org/0000-0002-4384-9739
- affiliation: German Aerospace Center (DLR)
  family-names: Stefani
  given-names: Thomas
  orcid: https://orcid.org/0000-0001-7352-0590
- affiliation: German Aerospace Center (DLR)
  family-names: Durak
  given-names: Umut
  orcid: https://orcid.org/0000-0002-2928-1710
- affiliation: German Aerospace Center (DLR)
  family-names: Hoemann
  given-names: Elena
  orcid: https://orcid.org/0000-0001-9315-548X
- affiliation: German Aerospace Center (DLR)
  family-names: Köster
  given-names: Frank
- affiliation: German Aerospace Center (DLR)
  family-names: Krüger
  given-names: Thomas
- affiliation: German Aerospace Center (DLR)
  family-names: Hallerbach
  given-names: Sven
cff-version: 1.2.0
date-released: '2024-10-01'
message: If you use this software, please cite it using the metadata from this file.
preferred-citation:
  authors:
  - family-names: Christensen
    given-names: Johann Maximilian
  - family-names: Anilkumar Girija
    given-names: Akshay
  - family-names: Stefani
    given-names: Thomas
  - family-names: Durak
    given-names: Umut
  - family-names: Hoemann
    given-names: Elena
  - family-names: Köster
    given-names: Frank
  - family-names: Krüger
    given-names: Thomas
  - family-names: Hallerbach
    given-names: Sven
  conference:
    name: 36th IEEE International Conference on Tools with Artificial Intelligence (ICTAI)
  date-released: '2024-10-01'
  title: Advancing the AI-Based Realization of ACAS X Towards Real-World Application
  type: conference-paper
repository-code: https://github.com/DLR-KI/pycasx.git
title: Advancing the AI-Based Realization of ACAS X Towards Real-World Application

GitHub Events

Total
  • Watch event: 1
  • Delete event: 26
  • Issue comment event: 31
  • Push event: 53
  • Pull request review comment event: 1
  • Pull request review event: 7
  • Pull request event: 55
  • Create event: 28
Last Year
  • Watch event: 1
  • Delete event: 26
  • Issue comment event: 31
  • Push event: 53
  • Pull request review comment event: 1
  • Pull request review event: 7
  • Pull request event: 55
  • Create event: 28

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 21
  • Average time to close issues: N/A
  • Average time to close pull requests: 26 days
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.38
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 21
Past Year
  • Issues: 0
  • Pull requests: 21
  • Average time to close issues: N/A
  • Average time to close pull requests: 26 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.38
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 21
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (34)
  • pre-commit-ci[bot] (2)
  • juhannc (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (34) python (32) General (21) Packaging (20) github_actions (2) GitHub (1) Workflows (1) pre-commit (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 10 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
pypi.org: pycasx

A Python implementation of ACAS XA and ACAS XU for Flightgear.

  • Homepage: https://github.com/DLR-KI/pycasx.git
  • Documentation: https://pycasx.readthedocs.io/
  • License: MIT License Copyright (c) <year> <copyright holders> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 1.0.0
    published almost 2 years ago
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 10 Last month
Rankings
Dependent packages count: 10.3%
Average: 34.2%
Dependent repos count: 58.1%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/flake8.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
.github/workflows/labeler.yml actions
  • actions/labeler v5 composite
.github/workflows/mypy.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • tsuyoshicho/action-mypy v4 composite
.github/workflows/pre-commit.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • pre-commit/action v3.0.1 composite
.github/workflows/publish.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • pypa/gh-action-pypi-publish release/v1 composite
.github/workflows/pylint.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
.github/workflows/pytest.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
pyproject.toml pypi
  • fastapi [all]==0.105.0
  • flightgear-python ==1.6.0
  • hydra-core ==1.3.2
  • libtmux ==0.31.0.post0
  • loguru ==0.7.2
  • lxml ==5.1.0
  • numpy ==1.24.4
  • onnx ==1.14.1
  • onnx2torch ==1.5.12
  • onnxruntime ==1.16.1
  • pillow ==10.1.0
  • pint ==0.21.1
  • pyproj ==3.5.0
  • rich ==13.7.1
  • scipy ==1.10.1
  • torch ==2.1.0
  • tqdm ==4.66.2