Skip to content

Consolidate erfa.core.STATUS_CODES definition - #316

Merged
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:status_codes-definitions
Aug 13, 2026
Merged

Consolidate erfa.core.STATUS_CODES definition#316
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:status_codes-definitions

Conversation

@eerovaher

Copy link
Copy Markdown
Collaborator

STATUS_CODES is the dict that contains possible status code values ERFA functions can return together with their descriptions extracted from the ERFA doc comments. On current main erfa_generator produces a core.py file that initializes STATUS_CODES as an empty dict to which entries are added one function at a time, meaning its contents are spread out across almost 20 000 lines. In this PR erfa_generator produces code that creates STATUS_CODES in one go. The change is only to how STATUS_CODES gets populated, there are no changes to the entries themselves.

`STATUS_CODES` is the `dict` that contains possible status code values
ERFA functions can return together with their descriptions extracted
from the ERFA doc comments. So far `erfa_generator` has produced a
`core.py` file that initialized `STATUS_CODES` as an empty `dict` to
which entries were added one function at a time, meaning its contents
have been spread out across almost 20 000 lines. Now `erfa_generator`
produces code that creates `STATUS_CODES` in one go.
@avalentino
avalentino merged commit c2b3cc8 into liberfa:main Aug 13, 2026
40 of 41 checks passed
@eerovaher
eerovaher deleted the status_codes-definitions branch August 13, 2026 20:17
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