Skip to content

docs: add module docstrings and improve method docstrings in galaxy package#293

Merged
Jammy2211 merged 1 commit intomainfrom
docs/galaxy
Mar 11, 2026
Merged

docs: add module docstrings and improve method docstrings in galaxy package#293
Jammy2211 merged 1 commit intomainfrom
docs/galaxy

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • Add module-level docstrings to galaxy.py, galaxies.py, redshift.py, and to_inversion.py
  • Add full docstring to Galaxy.traced_grid_2d_from explaining the lensing ray-tracing equation β = θ − α(θ)
  • Add half_light_radius property with docstring explaining why it returns None for a multi-component galaxy
  • Add docstring to Galaxies.redshift property
  • Add module docstring to to_inversion explaining the linear profile / pixelization → inversion pipeline

Test plan

  • Confirm Sphinx docs build without errors
  • Verify docstring text renders correctly in generated HTML

🤖 Generated with Claude Code

…ackage

- Add module-level docstrings to galaxy.py, galaxies.py, redshift.py,
  and to_inversion.py explaining what each module contains and its role
  in the modeling pipeline
- Add docstring to Galaxy.traced_grid_2d_from explaining the lensing
  ray-tracing equation β = θ − α(θ)
- Move Galaxy.half_light_radius property to sit with the traced grid
  method and add a docstring explaining why it returns None
- Add docstring to Galaxies.redshift property
- Add module docstring to to_inversion explaining how linear profiles and
  pixelizations are converted to inversion objects

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit afa1e8c into main Mar 11, 2026
8 checks passed
@Jammy2211 Jammy2211 deleted the docs/galaxy branch April 2, 2026 11:42
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