Skip to content

Conversation

@f-brinkmann
Copy link
Member

Changes proposed in this pull request:

Many SH properties and methods are used in multiple classes or functions but they are not documented consistently with respect to each other and our guidelines. This is a suggestion for the documentation based on the SphericalHarmonics and _SpharicalHarmonicBase classes. Once we agree on something. The documentation can be unified everywhere in spharpy.

Note that

  • the mathematical definition of SH was removed, because it will be documented on the top level module docstring.
  • the warnings in the docs do not originiate from this pull and should be fixed in a separate pull.

@f-brinkmann f-brinkmann added the documentation Improvements or additions to documentation label Jan 10, 2026
@f-brinkmann f-brinkmann added this to the v1.0.0 milestone Jan 10, 2026
@f-brinkmann f-brinkmann moved this from Backlog to Require review in Weekly Planning Jan 10, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the documentation of spherical harmonics (SH) classes by improving consistency, clarity, and organization of docstrings. The mathematical definitions of SH have been removed from the class docstring as they will be documented at the module level instead.

Changes:

  • Streamlined class-level docstring by removing detailed mathematical formulations
  • Improved parameter descriptions with more precise language and better formatting
  • Updated property docstrings for better clarity and consistency
  • Enhanced documentation of gradient methods with references to coordinate system definitions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

Status: Require review

Development

Successfully merging this pull request may close these issues.

2 participants