Repository navigation
Document that spin and reality are ignored for jax_healpy - #440
Open
Muhtasim-Munif-Fahim wants to merge 3 commits into
Open
Muhtasim-Munif-Fahim wants to merge 3 commits into
Muhtasim-Munif-Fahim wants to merge 3 commits into
Conversation
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
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #409
s2fft.forwardands2fft.inverseonly passspinandrealityto the non-healpy backends:healpy_forward/healpy_inversewrap healpy's scalarmap2alm/alm2map, so withmethod="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
spinandrealityargument descriptions of both wrappers:spinis ignored forjax_healpy, which only computes scalar (spin 0) transforms.realityis ignored forjax_healpy, because healpy only transforms real signals.It also fixes a missing opening quote in the
methodlist offorward(jax_ssht"→"jax_ssht").Docs only, no behaviour change.
ruff checkandruff format --checkpass on the file.AI disclosure: I prepared this change with help from an AI coding assistant, and I checked it against the code myself.