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

Add spice module to documentation #1010

Conversation

subagonsouth
Copy link
Contributor

Change Summary

Overview

These are all changes that were needed to add the spice directory to the documentation build and fix some formatting issues.

Lots of changes to get the spinx documentaton right
@subagonsouth subagonsouth added the Repo: Documentation Improvements or additions to documentation label Oct 11, 2024
@subagonsouth subagonsouth self-assigned this Oct 11, 2024
@subagonsouth subagonsouth requested review from a team, vmartinez-cu, laspsandoval and maxinelasp and removed request for a team October 11, 2024 17:56
@@ -117,6 +117,9 @@
(r"py:.*", r".*np.ndarray.*"),
(r"py:.*", r".*numpy._typing._array_like._ScalarType_co.*"),
(r"py:.*", r".*idex.l1a.TRIGGER_DESCRIPTION.*"),
(r"py:.*", r".*.spice.geometry.SpiceBody.*"),
Copy link
Contributor Author

@subagonsouth subagonsouth Oct 11, 2024

Choose a reason for hiding this comment

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

More nitpick ignores for IntEnums and some numpy_typing. What confuses me is that theses sphinx warnings would go away if I built the documentation a second time without cleaning. I simply couldn't figure out how to fix these issues without just adding the ignore regex here.

@@ -96,10 +97,11 @@ def imap_state(
----------
et : np.ndarray or float
Epoch time(s) [J2000 seconds] to get the IMAP state for.
ref_frame : SpiceFrame, optional
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no clue why sphinx was having problems with this optional here, which adheres to numpydoc syntax. I spent way too long trying to fix it but ended up just having to remove it.

Copy link
Contributor

@laspsandoval laspsandoval left a comment

Choose a reason for hiding this comment

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

I actually don't see anything that needs to be changed. Looks good to me, but I'll let other reviewers chime in before I hit "approve".

Copy link
Contributor

@maxinelasp maxinelasp left a comment

Choose a reason for hiding this comment

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

LGTM. Sphinx is... its own challenge... so nice job integrating this

@subagonsouth subagonsouth merged commit f6204d2 into IMAP-Science-Operations-Center:dev Oct 14, 2024
17 checks passed
@subagonsouth subagonsouth deleted the 996-add-spice-directory-to-the-documentation-build branch October 14, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repo: Documentation Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants