Skip to content

Simplify extracting summaries from ERFA function doc comments#256

Merged
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:doc-comment-first-sentence
May 26, 2026
Merged

Simplify extracting summaries from ERFA function doc comments#256
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:doc-comment-first-sentence

Conversation

@eerovaher

Copy link
Copy Markdown
Contributor

On current main branch erfa_generator extracts the first and sometimes also the second sentence from an ERFA function doc comment and inserts it into the beginning of the docstring of the corresponding Python function as a summary. This PR always extracts only the first sentence. In practice this only changes the docstrings of atco13(), atio13(), atoc13() atoi13(), which all have the same second sentence, but this can't be a problem because the eraApio13 doc comment also contains that sentence and current main is already not including it in the apio13() docstring summary. In any case the full contents of the ERFA doc comments are always added to the Notes sections of the docstrings, so nothing is really being hidden from interested users.

So far `erfa_generator` has taken the first and sometimes also the
second sentence from an ERFA function doc comment and inserted it into
the beginning of the docstring of the corresponding Python function.
Always extracting only the first sentence simplifies the code without
losing any important information because the full contents of the ERFA
doc comments are still available in the Notes section of the docstrings.
In practice this change modifies only 4 docstrings. but they all share
the second sentence and that same sentence is already omitted from the
`apio13()` docstring.
@eerovaher eerovaher force-pushed the doc-comment-first-sentence branch from bf7f6fa to 18042a8 Compare May 26, 2026 18:48
@avalentino avalentino merged commit 05fa474 into liberfa:main May 26, 2026
28 checks passed
@eerovaher eerovaher deleted the doc-comment-first-sentence branch May 26, 2026 21:32
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