Skip to content

Commit 6eb40f1

Browse files
committed
revert static notebook link, add executed notebooks to docs
1 parent 6cfe4d5 commit 6eb40f1

File tree

3 files changed

+74
-30
lines changed

3 files changed

+74
-30
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![image](https://badge.fury.io/py/s2fft.svg)](https://badge.fury.io/py/s2fft)
55
[![image](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 -->
66
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-) <!-- ALL-CONTRIBUTORS-BADGE:END -->
7-
[![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)
7+
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1YmJ2ljsF8HBvhPmD4hrYPlyAKc4WPUgq?usp=sharing)
88
<!-- [![image](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) -->
99

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

notebooks/spherical_harmonic_transform.ipynb

Lines changed: 45 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": null,
27+
"execution_count": 2,
2828
"metadata": {},
2929
"outputs": [],
3030
"source": [
31-
"# Install s2fft\n",
32-
"!pip install s2fft gwpy &> /dev/null\n",
33-
"\n",
3431
"from jax.config import config\n",
3532
"config.update(\"jax_enable_x64\", True)\n",
3633
"\n",
@@ -53,9 +50,24 @@
5350
},
5451
{
5552
"cell_type": "code",
56-
"execution_count": null,
57-
"metadata": {},
58-
"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+
],
5971
"source": [
6072
"plotting_functions.plot_sphere(f, L, sampling, isnotebook=True)"
6173
]
@@ -74,7 +86,7 @@
7486
},
7587
{
7688
"cell_type": "code",
77-
"execution_count": null,
89+
"execution_count": 5,
7890
"metadata": {},
7991
"outputs": [],
8092
"source": [
@@ -91,7 +103,7 @@
91103
},
92104
{
93105
"cell_type": "code",
94-
"execution_count": null,
106+
"execution_count": 6,
95107
"metadata": {},
96108
"outputs": [],
97109
"source": [
@@ -113,7 +125,7 @@
113125
},
114126
{
115127
"cell_type": "code",
116-
"execution_count": null,
128+
"execution_count": 7,
117129
"metadata": {},
118130
"outputs": [],
119131
"source": [
@@ -130,7 +142,7 @@
130142
},
131143
{
132144
"cell_type": "code",
133-
"execution_count": null,
145+
"execution_count": 8,
134146
"metadata": {},
135147
"outputs": [],
136148
"source": [
@@ -152,18 +164,34 @@
152164
},
153165
{
154166
"cell_type": "code",
155-
"execution_count": null,
156-
"metadata": {},
157-
"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+
],
158178
"source": [
159179
"print(f\"Mean absolute error = {np.nanmean(np.abs(np.real(f_recov) - f))}\")"
160180
]
161181
},
162182
{
163183
"cell_type": "code",
164-
"execution_count": null,
165-
"metadata": {},
166-
"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+
],
167195
"source": [
168196
"print(f\"Mean absolute error using precomputes = {np.nanmean(np.abs(np.real(f_recov_pre) - f))}\")"
169197
]

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)