Skip to content

Commit 7e453e0

Browse files
authored
Simplify reconstruction tutorial (#334)
* Fix img indexing * Simply recon tutorial * Bump version
1 parent 5430fa6 commit 7e453e0

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

diffdrr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.3"
1+
__version__ = "0.4.4"

diffdrr/drr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def render(
191191
density,
192192
source,
193193
target[:, idx * n_points : (idx + 1) * n_points],
194-
img[:, idx * n_points : (idx + 1) * n_points],
194+
img[..., idx * n_points : (idx + 1) * n_points],
195195
**kwargs,
196196
)
197197
partials.append(partial)

notebooks/api/00_drr.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
" density,\n",
311311
" source,\n",
312312
" target[:, idx * n_points : (idx + 1) * n_points],\n",
313-
" img[:, idx * n_points : (idx + 1) * n_points],\n",
313+
" img[..., idx * n_points : (idx + 1) * n_points],\n",
314314
" **kwargs,\n",
315315
" )\n",
316316
" partials.append(partial)\n",

notebooks/tutorials/reconstruction.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
"name": "stderr",
162162
"output_type": "stream",
163163
"text": [
164-
" 25%|███████████████▎ | 25/101 [00:01<00:02, 29.91it/s]"
164+
" 24%|██████████████ | 24/101 [00:10<00:07, 9.75it/s]"
165165
]
166166
},
167167
{
@@ -178,7 +178,7 @@
178178
"name": "stderr",
179179
"output_type": "stream",
180180
"text": [
181-
" 49%|█████████████████████████████ | 49/101 [00:01<00:01, 29.94it/s]"
181+
" 48%|█████████████████████████████ | 48/101 [00:11<00:02, 19.73it/s]"
182182
]
183183
},
184184
{
@@ -195,7 +195,7 @@
195195
"name": "stderr",
196196
"output_type": "stream",
197197
"text": [
198-
" 72%|████████████████████████████████████████████ | 73/101 [00:02<00:00, 29.80it/s]"
198+
" 74%|██████████████████████████████████████████████ | 75/101 [00:13<00:01, 20.97it/s]"
199199
]
200200
},
201201
{
@@ -212,7 +212,7 @@
212212
"name": "stderr",
213213
"output_type": "stream",
214214
"text": [
215-
" 96%|███████████████████████████████████████████████████████████▌ | 97/101 [00:03<00:00, 29.86it/s]"
215+
" 98%|████████████████████████████████████████████████████████████▊ | 99/101 [00:14<00:00, 20.97it/s]"
216216
]
217217
},
218218
{
@@ -229,7 +229,7 @@
229229
"name": "stderr",
230230
"output_type": "stream",
231231
"text": [
232-
"100%|█████████████████████████████████████████████████████████████| 101/101 [00:04<00:00, 24.37it/s]\n"
232+
"100%|█████████████████████████████████████████████████████████████| 101/101 [00:14<00:00, 6.91it/s]\n"
233233
]
234234
},
235235
{

settings.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[DEFAULT]
22
repo = DiffDRR
33
lib_name = diffdrr
4-
version = 0.4.3
4+
version = 0.4.4
55
min_python = 3.8
66
license = mit
77
black_formatting = True
@@ -36,4 +36,5 @@ allowed_cell_metadata_keys =
3636
jupyter_hooks = True
3737
clean_ids = True
3838
clear_all = False
39+
cell_number = True
3940

0 commit comments

Comments
 (0)