Skip to content

Update ANISE docs#41

Merged
ChristopherRabotin merged 1 commit into
masterfrom
update-docs
May 13, 2026
Merged

Update ANISE docs#41
ChristopherRabotin merged 1 commit into
masterfrom
update-docs

Conversation

@ChristopherRabotin
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request significantly expands the Python API documentation for the ANISE library, including the addition of the Quaternion class and numerous methods and constants across the constants, rotation, and time modules. Feedback focuses on correcting typos and grammatical errors, ensuring consistency in type hints (specifically using numpy.ndarray), and aligning documentation argument names with function signatures.

##### Variable `rot_mat_dt` {#anise.rotation.DCM.rot_mat_dt}

:rtype: numpy.array
Return the time derivative of this DMC, if set.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Typo: "DMC" should be "DCM" (Direction Cosine Matrix).

Suggested change
Return the time derivative of this DMC, if set.
Return the time derivative of this DCM, if set.

> )

Returns the angular velocity vector in deg/s if a rotation rate is defined.
:rtype: np.array
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

For consistency with other type hints in this file (e.g., lines 52, 58, 204), use numpy.ndarray instead of np.array.

Suggested change
:rtype: np.array
:rtype: numpy.ndarray

Comment on lines +115 to +116
* <code>from</code> - The ID of the source frame.
* <code>to</code> - The ID of the destination frame.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The argument names in the documentation list should match the function signature (from_id and to_id).

Suggested change
* <code>from</code> - The ID of the source frame.
* <code>to</code> - The ID of the destination frame.
* <code>from_id</code> - The ID of the source frame.
* <code>to_id</code> - The ID of the destination frame.

> /
> )

Convert this quaterion to a DCM
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Typo: "quaterion" should be "quaternion".

Suggested change
Convert this quaterion to a DCM
Convert this quaternion to a DCM

> time_scale=None
> )

Converts the Epoch to the Gregorian parts in the (optionally) provided time scale as (year, month, day, hour, minute, second).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The description of the Gregorian parts is missing the nanosecond component, which is included in the return type hint (7 integers).

Suggested change
Converts the Epoch to the Gregorian parts in the (optionally) provided time scale as (year, month, day, hour, minute, second).
Converts the Epoch to the Gregorian parts in the (optionally) provided time scale as (year, month, day, hour, minute, second, nanosecond).

> /
> )

Returns the Barycentric Coordinate Time (TCB) as a Duration its reference epoch (1977-01-01 + 65.5 µs)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Grammar: Missing "since" or "from" before "its reference epoch". This also applies to lines 2712, 2723, and 2734.

Suggested change
Returns the Barycentric Coordinate Time (TCB) as a Duration its reference epoch (1977-01-01 + 65.5 µs)
Returns the Barycentric Coordinate Time (TCB) as a Duration since its reference epoch (1977-01-01 + 65.5 µs)

and the number of nanoseconds elapsed in current week (since closest Sunday midnight).
This is usually how GNSS receivers describe a timestamp.
:rtype: typing.Tuple[int]
:rtype: tuple
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

For consistency with other tuple type hints (e.g., line 153), specify the tuple components for to_time_of_week.

Suggested change
:rtype: tuple
:rtype: tuple[int, int]

> other
> )

Returns a copy of self where the hours, minutes, seconds is set to the time of the provided epoch but the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Grammar: "hours, minutes, seconds is set" should be "hours, minutes, and seconds are set".

Suggested change
Returns a copy of self where the hours, minutes, seconds is set to the time of the provided epoch but the
Returns a copy of self where the hours, minutes, and seconds are set to the time of the provided epoch but the

@github-actions
Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 4fa963c):

https://nyx-space--pr41-update-docs-dt8zifo9.web.app

(expires Wed, 20 May 2026 04:42:10 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: ecf6068ed4b2d3d429c02e3ebe5890356e4315eb

@ChristopherRabotin ChristopherRabotin merged commit bf003ca into master May 13, 2026
2 checks passed
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.

1 participant