Skip to content

Commit f72dde8

Browse files
authored
Merge branch 'main' into mmg/update-test-workflow
2 parents 1d195ff + 57c07e5 commit f72dde8

19 files changed

+1909
-140
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,9 @@ jobs:
5454
5555
- name: Run tests
5656
run: |
57-
pytest -v --cov-report term --cov=s2fft --cov-config=.coveragerc
58-
codecov --token 298dc7ee-bb9f-4221-b31f-3576cc6cb702
57+
pytest -v --cov-report=xml --cov=s2fft --cov-config=.coveragerc
58+
59+
- name: Upload coverage reports to Codecov
60+
uses: codecov/codecov-action@v3
61+
env:
62+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
[![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
66
[![PyPI package](https://badge.fury.io/py/s2fft.svg)](https://badge.fury.io/py/s2fft)
77
[![arXiv](http://img.shields.io/badge/arXiv-2311.14670-orange.svg?style=flat)](https://arxiv.org/abs/2311.14670)<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
8-
[![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors-)
9-
<!-- ALL-CONTRIBUTORS-BADGE:END -->
8+
[![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors-)<!-- ALL-CONTRIBUTORS-BADGE:END -->
109
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/astro-informatics/s2fft/blob/main/notebooks/spherical_harmonic_transform.ipynb)
11-
<!-- [![image](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) -->
10+
[![Linter](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
1211

1312
<img align="left" height="85" width="98" src="./docs/assets/sax_logo.png">
1413

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:html_theme.sidebar_secondary.remove:
2+
3+
**************************
4+
Custom Operations
5+
**************************
6+
.. automodule:: s2fft.precompute_transforms.custom_ops
7+
:members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:html_theme.sidebar_secondary.remove:
2+
3+
**************************
4+
Fourier-Wigner Transform
5+
**************************
6+
.. automodule:: s2fft.precompute_transforms.fourier_wigner
7+
:members:

docs/api/precompute_transforms/index.rst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,40 @@ Precompute Functions
5050
* - :func:`~s2fft.precompute_transforms.wigner.forward_transform_torch`
5151
- Forward Wigner transform (Torch)
5252

53+
.. list-table:: Fourier-Wigner transforms.
54+
:widths: 25 25
55+
:header-rows: 1
56+
57+
* - Function Name
58+
- Description
59+
* - :func:`~s2fft.precompute_transforms.fourier_wigner.inverse_transform`
60+
- Inverse Wigner transform with Fourier method (NumPy)
61+
* - :func:`~s2fft.precompute_transforms.fourier_wigner.inverse_transform_jax`
62+
- Inverse Wigner transform with Fourier method (JAX)
63+
* - :func:`~s2fft.precompute_transforms.fourier_wigner.forward_transform`
64+
- Forward Wigner transform with Fourier method (NumPy)
65+
* - :func:`~s2fft.precompute_transforms.fourier_wigner.forward_transform_jax`
66+
- Forward Wigner transform with Fourier method (JAX)
67+
68+
.. list-table:: Custom Operations
69+
:widths: 25 25
70+
:header-rows: 1
71+
72+
* - Function Name
73+
- Description
74+
* - :func:`~s2fft.precompute_transforms.custom_ops.wigner_subset_to_s2`
75+
- Transforms an arbitrary subset of Wigner coefficients onto a subset of spin signals on the sphere.
76+
* - :func:`~s2fft.precompute_transforms.custom_ops.wigner_subset_to_s2_jax`
77+
- Transforms an arbitrary subset of Wigner coefficients onto a subset of spin signals on the sphere (JAX).
78+
* - :func:`~s2fft.precompute_transforms.custom_ops.so3_to_wigner_subset`
79+
- Transforms a signal on the rotation group to an arbitrary subset of its Wigner coefficients.
80+
* - :func:`~s2fft.precompute_transforms.custom_ops.so3_to_wigner_subset_jax`
81+
- Transforms a signal on the rotation group to an arbitrary subset of its Wigner coefficients (JAX).
82+
* - :func:`~s2fft.precompute_transforms.custom_ops.s2_to_wigner_subset`
83+
- Transforms from a collection of arbitrary spin signals on the sphere to the corresponding collection of their harmonic coefficients.
84+
* - :func:`~s2fft.precompute_transforms.custom_ops.s2_to_wigner_subset_jax`
85+
- Transforms from a collection of arbitrary spin signals on the sphere to the corresponding collection of their harmonic coefficients (JAX).
86+
5387
.. list-table:: Constructing Kernels for precompute transforms.
5488
:widths: 25 25
5589
:header-rows: 1
@@ -60,6 +94,14 @@ Precompute Functions
6094
- Builds a kernel including quadrature weights and Wigner-D coefficients for spherical harmonic transform.
6195
* - :func:`~s2fft.precompute_transforms.construct.wigner_kernel`
6296
- Builds a kernel including quadrature weights and Wigner-D coefficients for Wigner transform.
97+
* - :func:`~s2fft.precompute_transforms.construct.spin_spherical_kernel_jax`
98+
- Builds a kernel including quadrature weights and Wigner-D coefficients for spherical harmonic transform (JAX).
99+
* - :func:`~s2fft.precompute_transforms.construct.wigner_kernel_jax`
100+
- Builds a kernel including quadrature weights and Wigner-D coefficients for Wigner transform (JAX).
101+
* - :func:`~s2fft.precompute_transforms.construct.fourier_wigner_kernel`
102+
- Builds a kernel including quadrature weights and Fourier coefficienfs of Wigner d-functions
103+
* - :func:`~s2fft.precompute_transforms.construct.fourier_wigner_kernel_jax`
104+
- Builds a kernel including quadrature weights and Fourier coefficienfs of Wigner d-functions (JAX).
63105
* - :func:`~s2fft.precompute_transforms.construct.healpix_phase_shifts`
64106
- Builds a vector of corresponding phase shifts for each HEALPix latitudinal ring.
65107

@@ -69,6 +111,9 @@ Precompute Functions
69111
:caption: Precompute Transforms
70112

71113
construct
114+
alt_construct
72115
spin_spherical
73116
wigner
117+
fourier_wigner
118+
custom_ops
74119

docs/index.rst

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,19 @@ key <https://allcontributors.org/docs/en/emoji-key>`_):
7878
<table>
7979
<tbody>
8080
<tr>
81-
<td align="center" valign="top" width="14.28%"><a href="https://cosmomatt.github.io"><img src="https://avatars.githubusercontent.com/u/32554533?v=4?s=100" width="100px;" alt="Matt Price"/><br /><sub><b>Matt Price</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=CosmoMatt" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/pulls?q=is%3Apr+reviewed-by%3ACosmoMatt" title="Reviewed Pull Requests">👀</a> <a href="#ideas-CosmoMatt" title="Ideas, Planning, & Feedback">🤔</a></td>
82-
<td align="center" valign="top" width="14.28%"><a href="http://www.jasonmcewen.org"><img src="https://avatars.githubusercontent.com/u/3181701?v=4?s=100" width="100px;" alt="Jason McEwen "/><br /><sub><b>Jason McEwen </b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=jasonmcewen" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/pulls?q=is%3Apr+reviewed-by%3Ajasonmcewen" title="Reviewed Pull Requests">👀</a> <a href="#ideas-jasonmcewen" title="Ideas, Planning, & Feedback">🤔</a></td>
83-
<td align="center" valign="top" width="14.28%"><a href="http://matt-graham.github.io"><img src="https://avatars.githubusercontent.com/u/6746980?v=4?s=100" width="100px;" alt="Matt Graham"/><br /><sub><b>Matt Graham</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=matt-graham" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/pulls?q=is%3Apr+reviewed-by%3Amatt-graham" title="Reviewed Pull Requests">👀</a></td>
84-
<td align="center" valign="top" width="14.28%"><a href="https://sfmig.github.io/"><img src="https://avatars.githubusercontent.com/u/33267254?v=4?s=100" width="100px;" alt="sfmig"/><br /><sub><b>sfmig</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=sfmig" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/pulls?q=is%3Apr+reviewed-by%3Asfmig" title="Reviewed Pull Requests">👀</a></td>
85-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Devaraj-G"><img src="https://avatars.githubusercontent.com/u/36169767?v=4?s=100" width="100px;" alt="Devaraj Gopinathan"/><br /><sub><b>Devaraj Gopinathan</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=Devaraj-G" title="Code">💻</a></td>
86-
<td align="center" valign="top" width="14.28%"><a href="http://flanusse.net"><img src="https://avatars.githubusercontent.com/u/861591?v=4?s=100" width="100px;" alt="Francois Lanusse"/><br /><sub><b>Francois Lanusse</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=EiffL" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/issues?q=author%3AEiffL" title="Bug reports">🐛</a></td>
87-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/eltociear"><img src="https://avatars.githubusercontent.com/u/22633385?v=4?s=100" width="100px;" alt="Ikko Eltociear Ashimine"/><br /><sub><b>Ikko Eltociear Ashimine</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=eltociear" title="Documentation">📖</a></td>
81+
<td align="center" valign="top" width="14.28%"><a href="https://cosmomatt.github.io"><img src="https://avatars.githubusercontent.com/u/32554533?v=4?s=100" width="100px;" alt="Matt Price"/><br /><sub><b>Matt Price</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=CosmoMatt" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/pulls?q=is%3Apr+reviewed-by%3ACosmoMatt" title="Reviewed Pull Requests">👀</a> <a href="#ideas-CosmoMatt" title="Ideas, Planning, & Feedback">🤔</a></td>
82+
<td align="center" valign="top" width="14.28%"><a href="http://www.jasonmcewen.org"><img src="https://avatars.githubusercontent.com/u/3181701?v=4?s=100" width="100px;" alt="Jason McEwen "/><br /><sub><b>Jason McEwen </b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=jasonmcewen" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/pulls?q=is%3Apr+reviewed-by%3Ajasonmcewen" title="Reviewed Pull Requests">👀</a> <a href="#ideas-jasonmcewen" title="Ideas, Planning, & Feedback">🤔</a></td>
83+
<td align="center" valign="top" width="14.28%"><a href="http://matt-graham.github.io"><img src="https://avatars.githubusercontent.com/u/6746980?v=4?s=100" width="100px;" alt="Matt Graham"/><br /><sub><b>Matt Graham</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=matt-graham" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/pulls?q=is%3Apr+reviewed-by%3Amatt-graham" title="Reviewed Pull Requests">👀</a></td>
84+
<td align="center" valign="top" width="14.28%"><a href="https://sfmig.github.io/"><img src="https://avatars.githubusercontent.com/u/33267254?v=4?s=100" width="100px;" alt="sfmig"/><br /><sub><b>sfmig</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=sfmig" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/pulls?q=is%3Apr+reviewed-by%3Asfmig" title="Reviewed Pull Requests">👀</a></td>
85+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Devaraj-G"><img src="https://avatars.githubusercontent.com/u/36169767?v=4?s=100" width="100px;" alt="Devaraj Gopinathan"/><br /><sub><b>Devaraj Gopinathan</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=Devaraj-G" title="Code">💻</a></td>
86+
<td align="center" valign="top" width="14.28%"><a href="http://flanusse.net"><img src="https://avatars.githubusercontent.com/u/861591?v=4?s=100" width="100px;" alt="Francois Lanusse"/><br /><sub><b>Francois Lanusse</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=EiffL" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/issues?q=author%3AEiffL" title="Bug reports">🐛</a></td>
87+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/eltociear"><img src="https://avatars.githubusercontent.com/u/22633385?v=4?s=100" width="100px;" alt="Ikko Eltociear Ashimine"/><br /><sub><b>Ikko Eltociear Ashimine</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=eltociear" title="Documentation">📖</a></td>
8888
</tr>
8989
<tr>
90-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kmulderdas"><img src="https://avatars.githubusercontent.com/u/33317219?v=4?s=100" width="100px;" alt="Kevin Mulder"/><br /><sub><b>Kevin Mulder</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/issues?q=author%3Akmulderdas" title="Bug reports">🐛</a></td>
91-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/PhilippMisofCH"><img src="https://avatars.githubusercontent.com/u/142883157?v=4?s=100" width="100px;" alt="Philipp Misof"/><br /><sub><b>Philipp Misof</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/issues?q=author%3APhilippMisofCH" title="Bug reports">🐛</a></td>
90+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kmulderdas"><img src="https://avatars.githubusercontent.com/u/33317219?v=4?s=100" width="100px;" alt="Kevin Mulder"/><br /><sub><b>Kevin Mulder</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/issues?q=author%3Akmulderdas" title="Bug reports">🐛</a></td>
91+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/PhilippMisofCH"><img src="https://avatars.githubusercontent.com/u/142883157?v=4?s=100" width="100px;" alt="Philipp Misof"/><br /><sub><b>Philipp Misof</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/issues?q=author%3APhilippMisofCH" title="Bug reports">🐛</a></td>
92+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ElisR"><img src="https://avatars.githubusercontent.com/u/19764906?v=4?s=100" width="100px;" alt="Elis Roberts"/><br /><sub><b>Elis Roberts</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/issues?q=author%3AElisR" title="Bug reports">🐛</a> <a href="https://github.com/astro-informatics/s2fft/commits?author=ElisR" title="Documentation">📖</a></td>
93+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ASKabalan"><img src="https://avatars.githubusercontent.com/u/83787080?v=4?s=100" width="100px;" alt="Wassim KABALAN"/><br /><sub><b>Wassim KABALAN</b></sub></a><br /><a href="https://github.com/astro-informatics/s2fft/commits?author=ASKabalan" title="Code">💻</a> <a href="https://github.com/astro-informatics/s2fft/pulls?q=is%3Apr+reviewed-by%3AASKabalan" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/astro-informatics/s2fft/commits?author=ASKabalan" title="Tests">⚠️</a></td>
9294
</tr>
9395
</tbody>
9496
</table>

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ plotting = [
7373
tests = [
7474
"pytest",
7575
"pytest-cov",
76-
"codecov",
7776
"so3",
7877
]
7978

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from . import construct, spherical, wigner
1+
from . import construct, custom_ops, fourier_wigner, spherical, wigner

0 commit comments

Comments
 (0)