Skip to content

Document that spin and reality are ignored for jax_healpy - #440

Open
Muhtasim-Munif-Fahim wants to merge 3 commits into
astro-informatics:mainfrom
Muhtasim-Munif-Fahim:docs/jax-healpy-ignores-spin-reality
Open

Muhtasim-Munif-Fahim wants to merge 3 commits into
astro-informatics:mainfrom
Muhtasim-Munif-Fahim:docs/jax-healpy-ignores-spin-reality

Conversation

@Muhtasim-Munif-Fahim

Copy link
Copy Markdown

Closes #409

s2fft.forward and s2fft.inverse only pass spin and reality to the non-healpy backends:

if method == "jax_healpy":
    ...
else:
    forward_kwargs.update(spin=spin, reality=reality)

healpy_forward/healpy_inverse wrap healpy's scalar map2alm/alm2map, so with method="jax_healpy" both arguments are silently ignored. As the issue points out, a first-time user can't tell this from the docs.

This PR documents it in the spin and reality argument descriptions of both wrappers:

  • spin is ignored for jax_healpy, which only computes scalar (spin 0) transforms.
  • reality is ignored for jax_healpy, because healpy only transforms real signals.

It also fixes a missing opening quote in the method list of forward (jax_ssht" → "jax_ssht").

Docs only, no behaviour change. ruff check and ruff format --check pass on the file.

AI disclosure: I prepared this change with help from an AI coding assistant, and I checked it against the code myself.

The forward and inverse wrappers only pass spin and reality to the
non-healpy backends; healpy computes scalar transforms of real signals.
Say so in the argument docs, and fix a missing quote in the forward
method list.

Closes astro-informatics#409

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@matt-graham matt-graham self-assigned this Nov 18, 2026
@matt-graham matt-graham added the documentation Improvements or additions to documentation label Nov 18, 2026
@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.98%. Comparing base (72dd21a) to head (b9c62d7).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #440   +/-   ##
=======================================
  Coverage   96.98%   96.98%           
=======================================
  Files          36       36           
  Lines        3577     3577           
=======================================
  Hits         3469     3469           
  Misses        108      108           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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

None yet

Development

Successfully merging this pull request may close these issues.

Document that reality/spin aren't used for jax_healpy

2 participants