Skip to content

Commit 0f3128c

Browse files
committed
minor tweak to documentation
1 parent f17ac17 commit 0f3128c

File tree

4 files changed

+60
-24
lines changed

4 files changed

+60
-24
lines changed

.pip_readme.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
.. image:: https://colab.research.google.com/assets/colab-badge.svg
1414
:target: https://colab.research.google.com/drive/1YmJ2ljsF8HBvhPmD4hrYPlyAKc4WPUgq?usp=sharing
1515

16-
Differentiable and accelerated spherical transforms with JAX
16+
Differentiable and accelerated spherical transforms
1717
=================================================================================================================
1818

19-
`S2FFT` is a JAX package for computing Fourier transforms on the sphere
20-
and rotation group. It leverages autodiff to provide differentiable
19+
`S2FFT` is a Python package for computing Fourier transforms on the sphere
20+
and rotation group in JAX and PyTorch. It leverages autodiff to provide differentiable
2121
transforms, which are also deployable on hardware accelerators
2222
(e.g. GPUs and TPUs).
2323

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

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

12-
# Differentiable and accelerated spherical transforms with JAX
12+
# Differentiable and accelerated spherical transforms
1313

14-
`S2FFT` is a JAX package for computing Fourier transforms on the sphere
15-
and rotation group [(Price & McEwen 2023)](https://arxiv.org/abs/2311.14670). It leverages autodiff to provide differentiable
16-
transforms, which are also deployable on hardware accelerators
17-
(e.g. GPUs and TPUs).
14+
`S2FFT` is a Python package for computing Fourier transforms on the sphere
15+
and rotation group [(Price & McEwen 2023)](https://arxiv.org/abs/2311.14670) Using
16+
JAX or PyTorch. It leverages autodiff to provide differentiable transforms, which are
17+
also deployable on hardware accelerators (e.g. GPUs and TPUs).
1818

1919
More specifically, `S2FFT` provides support for spin spherical harmonic
2020
and Wigner transforms (for both real and complex signals), with support
@@ -83,21 +83,33 @@ The Python dependencies for the `S2FFT` package are listed in the file
8383
`requirements/requirements-core.txt` and will be automatically installed
8484
into the active python environment by [pip](https://pypi.org) when running
8585

86+
``` bash
87+
pip install s2fft
88+
```
89+
This will install all core functionality which includes JAX support. To install `S2FFT`
90+
with PyTorch support run the following
91+
92+
``` bash
93+
pip install s2fft[torch]
94+
```
95+
96+
Alternatively, the `S2FFT` package may be installed directly from GitHub by cloning this
97+
repository and then running
98+
8699
``` bash
87100
pip install .
88101
```
89102

90-
from the root directory of the repository. Unit tests can then be
91-
executed to ensure the installation was successful by running
103+
from the root directory of the repository. To enable PyTorch support you will need to run
92104

93105
``` bash
94-
pytest tests/
106+
pip install .[torch]
95107
```
96108

97-
Alternatively, the `S2FFT` package may be installed directly from PyPi by running
109+
Unit tests can then be executed to ensure the installation was successful by running
98110

99111
``` bash
100-
pip install s2fft
112+
pytest tests/
101113
```
102114

103115
> [!NOTE]

docs/index.rst

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Differentiable and accelerated spherical transforms
22
===================================================
33

4-
``S2FFT`` is a JAX package for computing Fourier transforms on the sphere and rotation
5-
group `(Price & McEwen 2023) <https://arxiv.org/abs/2311.14670>`_. It leverages autodiff to provide differentiable transforms, which are also
4+
``S2FFT`` is a Python package for computing Fourier transforms on the sphere and rotation
5+
group `(Price & McEwen 2023) <https://arxiv.org/abs/2311.14670>`_ in JAX and PyTorch.
6+
It leverages autodiff to provide differentiable transforms, which are also
67
deployable on modern hardware accelerators (e.g. GPUs and TPUs).
78

89
More specifically, ``S2FFT`` provides support for spin spherical harmonic and Wigner
@@ -65,12 +66,17 @@ key <https://allcontributors.org/docs/en/emoji-key>`_):
6566
<table>
6667
<tbody>
6768
<tr>
68-
<td align="center" valign="top" width="16.66%"><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>
69-
<td align="center" valign="top" width="16.66%"><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>
70-
<td align="center" valign="top" width="16.66%"><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>
71-
<td align="center" valign="top" width="16.66%"><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>
72-
<td align="center" valign="top" width="16.66%"><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>
73-
<td align="center" valign="top" width="16.66%"><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>
69+
<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>
70+
<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>
71+
<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>
72+
<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>
73+
<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>
74+
<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>
75+
<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>
76+
</tr>
77+
<tr>
78+
<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>
79+
<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>
7480
</tr>
7581
</tbody>
7682
</table>

docs/user_guide/install.rst

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@ from PyPi, an online python package manager.
1111

1212
Quick install (PyPi)
1313
--------------------
14-
The simplest way to pick up ``S2FFT`` is to install it directly from PyPi by running
14+
The simplest way to pick up ``S2FFT`` is to install the core JAX functionality directly
15+
from PyPi by running
1516

1617
.. code-block:: bash
1718
1819
pip install s2fft
1920
2021
after which ``S2FFT`` may be imported and run as outlined in the associated notebooks and collab tutorials.
22+
To install the PyTorch functionality you will need to install the subpackage by running
23+
24+
.. code-block:: bash
25+
26+
pip install s2fft[torch]
2127
2228
Install from source (GitHub)
2329
----------------------------
@@ -38,8 +44,20 @@ and pip installing locally
3844
cd s2fft
3945
pip install .
4046
41-
from the root directory of the repository. Unit tests can then be executed to ensure the
42-
installation was successful by running
47+
from the root directory of the repository. To install the Pytorch support you will need to
48+
install the subpackage by running
49+
50+
.. code-block:: bash
51+
52+
pip install .[torch]
53+
54+
which, depending on operating system, can sometimes be
55+
56+
.. code-block:: bash
57+
58+
pip install .\[torch\]
59+
60+
Unit tests can then be executed to ensure the installation was successful by running
4361

4462
.. code-block:: bash
4563

0 commit comments

Comments
 (0)