https://github.com/nasa-ammos/xait
Python script to translate an AIT command dictionary YAML to an AMPCS XML
https://github.com/nasa-ammos/xait
Last synced: 12 months ago
JSON representation
Python script to translate an AIT command dictionary YAML to an AMPCS XML
- Host: GitHub
- URL: https://github.com/nasa-ammos/xait
- Owner: NASA-AMMOS
- License: mit
- Created: 2023-03-21T19:33:29.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-19T00:38:13.000Z (over 2 years ago)
- Last Synced: 2025-04-09T01:42:40.969Z (about 1 year ago)
- Language: Python
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# xait
The purpose of this script is to convert an [AIT yaml command dictionary](https://ait-core.readthedocs.io/en/latest/command_intro.html#) to
the [AMPCS XML command dictionary](https://github.com/NASA-AMMOS/ampcs-dict-schemas/blob/main/CommandDictionary.rnc). The orignal reason behind the creation of the script was to be able to use the [Aerie Sequence Editor](https://nasa-ammos.github.io/aerie-docs/sequencing/editor/) to create sequences in the [seq-json](https://github.com/NASA-AMMOS/seq-json-schema) format. The Aerie sequence editor currently accepts command dictionaries in the AMPCS XML format.
Python 3.9 is recommended for best results
```
usage: xait.py [-h] [-f] [-m MISSION] [-i SCID] [-v VERSION] [-s SCHEMA_VERSION] [-c] [-k] input_yaml output_xml
positional arguments:
input_yaml file name of the AIT yaml command dictionary
output_xml name for the output xml file
optional arguments:
-h, --help show this help message and exit
-f, --fixed use fixed width strings for S### types
-m MISSION, --mission MISSION
mission name
-i SCID, --scid SCID spacecraft id
-v VERSION, --version VERSION
version of the command dictionary
-s SCHEMA_VERSION, --schema_version SCHEMA_VERSION
schema version of the command dictionary
-c, --comments include comments in output (may make the xml unuseable)
-k, --keepfixed keep fixed value args as default_value
```