Skip to content

Commit 85eff64

Browse files
authored
Merge pull request #174 from astro-informatics/documentation
add explicit doc link to readme
2 parents aff7f27 + 6eb40f1 commit 85eff64

File tree

3 files changed

+75
-26
lines changed

3 files changed

+75
-26
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ flmn = s2fft.wigner.forward_jax(f, L, N)
121121
f = fft.wigner.inverse_jax(flmn, L, N)
122122
```
123123

124+
For further details on usage see the [documentation](https://astro-informatics.github.io/s2fft/) and associated [notebooks](https://astro-informatics.github.io/s2fft/tutorials/spherical_harmonic/spherical_harmonic_transform.html).
125+
124126
## Benchmarking :hourglass_flowing_sand:
125127

126128
We benchmarked the spherical harmonic and Wigner transforms implemented

notebooks/spherical_harmonic_transform.ipynb

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": null,
27+
"execution_count": 2,
2828
"metadata": {},
2929
"outputs": [],
3030
"source": [
@@ -50,9 +50,24 @@
5050
},
5151
{
5252
"cell_type": "code",
53-
"execution_count": null,
54-
"metadata": {},
55-
"outputs": [],
53+
"execution_count": 3,
54+
"metadata": {},
55+
"outputs": [
56+
{
57+
"data": {
58+
"application/vnd.jupyter.widget-view+json": {
59+
"model_id": "e24324bbdc364d63ae9f34f68d19aba4",
60+
"version_major": 2,
61+
"version_minor": 0
62+
},
63+
"text/plain": [
64+
"Widget(value=\"<iframe src='http://localhost:38091/index.html?ui=P_0x7f3bd2a6dfd0_0&reconnect=auto' style='widt…"
65+
]
66+
},
67+
"metadata": {},
68+
"output_type": "display_data"
69+
}
70+
],
5671
"source": [
5772
"plotting_functions.plot_sphere(f, L, sampling, isnotebook=True)"
5873
]
@@ -71,7 +86,7 @@
7186
},
7287
{
7388
"cell_type": "code",
74-
"execution_count": null,
89+
"execution_count": 5,
7590
"metadata": {},
7691
"outputs": [],
7792
"source": [
@@ -88,7 +103,7 @@
88103
},
89104
{
90105
"cell_type": "code",
91-
"execution_count": null,
106+
"execution_count": 6,
92107
"metadata": {},
93108
"outputs": [],
94109
"source": [
@@ -110,7 +125,7 @@
110125
},
111126
{
112127
"cell_type": "code",
113-
"execution_count": null,
128+
"execution_count": 7,
114129
"metadata": {},
115130
"outputs": [],
116131
"source": [
@@ -127,7 +142,7 @@
127142
},
128143
{
129144
"cell_type": "code",
130-
"execution_count": null,
145+
"execution_count": 8,
131146
"metadata": {},
132147
"outputs": [],
133148
"source": [
@@ -149,18 +164,34 @@
149164
},
150165
{
151166
"cell_type": "code",
152-
"execution_count": null,
153-
"metadata": {},
154-
"outputs": [],
167+
"execution_count": 9,
168+
"metadata": {},
169+
"outputs": [
170+
{
171+
"name": "stdout",
172+
"output_type": "stream",
173+
"text": [
174+
"Mean absolute error = 4.2041881386973936e-13\n"
175+
]
176+
}
177+
],
155178
"source": [
156179
"print(f\"Mean absolute error = {np.nanmean(np.abs(np.real(f_recov) - f))}\")"
157180
]
158181
},
159182
{
160183
"cell_type": "code",
161-
"execution_count": null,
162-
"metadata": {},
163-
"outputs": [],
184+
"execution_count": 10,
185+
"metadata": {},
186+
"outputs": [
187+
{
188+
"name": "stdout",
189+
"output_type": "stream",
190+
"text": [
191+
"Mean absolute error using precomputes = 4.2041881386973936e-13\n"
192+
]
193+
}
194+
],
164195
"source": [
165196
"print(f\"Mean absolute error using precomputes = {np.nanmean(np.abs(np.real(f_recov_pre) - f))}\")"
166197
]

notebooks/wigner_transform.ipynb

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": null,
27+
"execution_count": 1,
2828
"metadata": {},
2929
"outputs": [],
3030
"source": [
@@ -54,7 +54,7 @@
5454
},
5555
{
5656
"cell_type": "code",
57-
"execution_count": null,
57+
"execution_count": 2,
5858
"metadata": {},
5959
"outputs": [],
6060
"source": [
@@ -71,7 +71,7 @@
7171
},
7272
{
7373
"cell_type": "code",
74-
"execution_count": null,
74+
"execution_count": 3,
7575
"metadata": {},
7676
"outputs": [],
7777
"source": [
@@ -92,7 +92,7 @@
9292
},
9393
{
9494
"cell_type": "code",
95-
"execution_count": null,
95+
"execution_count": 4,
9696
"metadata": {},
9797
"outputs": [],
9898
"source": [
@@ -109,7 +109,7 @@
109109
},
110110
{
111111
"cell_type": "code",
112-
"execution_count": null,
112+
"execution_count": 5,
113113
"metadata": {},
114114
"outputs": [],
115115
"source": [
@@ -131,26 +131,42 @@
131131
},
132132
{
133133
"cell_type": "code",
134-
"execution_count": null,
134+
"execution_count": 6,
135135
"metadata": {},
136-
"outputs": [],
136+
"outputs": [
137+
{
138+
"name": "stdout",
139+
"output_type": "stream",
140+
"text": [
141+
"Mean absolute error = 5.126898555332371e-14\n"
142+
]
143+
}
144+
],
137145
"source": [
138146
"print(f\"Mean absolute error = {np.nanmean(np.abs(flmn_recov - flmn))}\")"
139147
]
140148
},
141149
{
142150
"cell_type": "code",
143-
"execution_count": null,
151+
"execution_count": 7,
144152
"metadata": {},
145-
"outputs": [],
153+
"outputs": [
154+
{
155+
"name": "stdout",
156+
"output_type": "stream",
157+
"text": [
158+
"Mean absolute error using precomputes = 5.126898555332371e-14\n"
159+
]
160+
}
161+
],
146162
"source": [
147163
"print(f\"Mean absolute error using precomputes = {np.nanmean(np.abs(flmn_recov_pre - flmn))}\")"
148164
]
149165
}
150166
],
151167
"metadata": {
152168
"kernelspec": {
153-
"display_name": "Python 3.9.0 ('s2fft')",
169+
"display_name": "Python 3.8.16 64-bit ('s2fft')",
154170
"language": "python",
155171
"name": "python3"
156172
},
@@ -164,12 +180,12 @@
164180
"name": "python",
165181
"nbconvert_exporter": "python",
166182
"pygments_lexer": "ipython3",
167-
"version": "3.9.0"
183+
"version": "3.8.16"
168184
},
169185
"orig_nbformat": 4,
170186
"vscode": {
171187
"interpreter": {
172-
"hash": "3425e24474cbe920550266ea26b478634978cc419579f9dbcf479231067df6a3"
188+
"hash": "d6019e21eb0d27eebd69283f1089b8b605b46cb058a452b887458f3af7017e46"
173189
}
174190
}
175191
},

0 commit comments

Comments
 (0)