Skip to content

Some minor updates to #260 #298

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

Merged
merged 2 commits into from
Apr 23, 2025

Conversation

matt-graham
Copy link
Collaborator

This PR (which is on top of #260) makes some small tidying updates to #260

  • Corrects type hint for argument previously named DW
  • Changes name of DW argument to precomps to make use more obvious. I wasn't sure what an appropriate name was here but followed the pattern of using precomps as a shorthand for precomputed values in other transform functions.
  • Changes internal variable names Delta, Delta_el and Quads to delta, delta_el and quads to make compliant with PEP8 naming conventions.
  • Refactors some of the precompute / OTF specific logic in the forward transforms to avoid code repetition.

Tagging you for a review @jasonmcewen, mainly to check you are happy with the change from DW to precomps as the argument name.

@matt-graham matt-graham requested a review from jasonmcewen April 16, 2025 16:29
Copy link
Contributor

@jasonmcewen jasonmcewen left a comment

Choose a reason for hiding this comment

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

Thanks @matt-graham, LGTM. I think DW was standing for Delta and Weights but precomp seems fine to me since that's what we've typically been using elsewhere (i.e. we haven't been specifying what is stored in the precomp elsewhere). And the docstring does explain what precomp should contain.

@matt-graham matt-graham merged commit fd1e8b1 into map/recursive_risbo_otf Apr 23, 2025
5 checks passed
@matt-graham matt-graham deleted the mmg/recursive-risbo-otf-updates branch April 23, 2025 10:08
matt-graham added a commit that referenced this pull request Apr 23, 2025
#260)

* add on-the-fly support for Fourier Wigner transforms

* update custom ops test for new fourier wigner variable ordering

* Some minor updates to #260 (#298)

* Variable name and type hint cleanup

* Refactor to remove repeated code

---------

Co-authored-by: Matt Graham <[email protected]>
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.

2 participants