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

MNT: Change to a period separator for XTCE definitions #726

Merged

Conversation

greglucas
Copy link
Collaborator

Change Summary

Overview

This updates the XTCE generator to produce a period between the packet name and the mnemonic name, which helps for subsequent parsing.

Additionally, use that helpful fact to strip that leading packet name in the packet_file_to_datasets routine.

Testing

I did test this out manually by modifying an XTCE file to ensure that the stripping works as expected, but there aren't any other packet definitions with a packet name to make this easily testable yet. Maybe we'll update some of the packet definitions soon to exercise this.

This updates the XTCE generator to produce a period between the
packet name and the mnemonic name, which helps for subsequent parsing.

Additionally, use that helpful fact to strip that leading packet name
in the packet_file_to_datasets routine.
Copy link
Contributor

@tech3371 tech3371 left a comment

Choose a reason for hiding this comment

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

Thank you for adding that. I will try using XTCE that this produces in SWAPI after this PR.

Copy link
Contributor

@subagonsouth subagonsouth left a comment

Choose a reason for hiding this comment

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

LGTM

@greglucas greglucas merged commit c75ad40 into IMAP-Science-Operations-Center:dev Aug 2, 2024
17 checks passed
@greglucas greglucas deleted the xtce-packet-name-sep branch August 2, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants