Skip to content

Commit 4a5ebe9

Browse files
committed
Fix API
1 parent 4f0d4ff commit 4a5ebe9

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

notebooks/tutorials/spherical.ipynb

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@
5656
" height=5,\n",
5757
" delx=0.75,\n",
5858
" convention=\"diffdrr\",\n",
59-
").to(\"cpu\")\n",
60-
"\n",
61-
"drr.move_carm(rotations, translations)"
59+
").to(\"cpu\")"
6260
]
6361
},
6462
{
@@ -86,8 +84,7 @@
8684
" gamma = (0 / 8) * torch.pi\n",
8785
" rotations = torch.Tensor([[theta, phi, gamma]])\n",
8886
" \n",
89-
" drr.move_carm(rotations, translations)\n",
90-
" source, rays = drr.detector.make_xrays(drr.rotations, drr.translations)\n",
87+
" source, rays = drr.detector.make_xrays(rotations, translations)\n",
9188
" source_ = source.detach().cpu()\n",
9289
" rays_ = rays.permute(2, 0, 1).detach().cpu()\n",
9390
"\n",
@@ -132,8 +129,7 @@
132129
" gamma = (0 / 8) * torch.pi\n",
133130
" rotations = torch.Tensor([[theta, phi, gamma]])\n",
134131
" \n",
135-
" drr.move_carm(rotations, translations)\n",
136-
" source, rays = drr.detector.make_xrays(drr.rotations, drr.translations)\n",
132+
" source, rays = drr.detector.make_xrays(rotations, translations)\n",
137133
" source_ = source.detach().cpu()\n",
138134
" rays_ = rays.permute(2, 0, 1).detach().cpu()\n",
139135
"\n",
@@ -178,8 +174,7 @@
178174
" gamma = (i / 8) * torch.pi\n",
179175
" rotations = torch.Tensor([[theta, phi, gamma]])\n",
180176
" \n",
181-
" drr.move_carm(rotations, translations)\n",
182-
" source, rays = drr.detector.make_xrays(drr.rotations, drr.translations)\n",
177+
" source, rays = drr.detector.make_xrays(rotations, translations)\n",
183178
" source_ = source.detach().cpu()\n",
184179
" rays_ = rays.permute(2, 0, 1).detach().cpu()\n",
185180
"\n",

0 commit comments

Comments
 (0)