Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenvivek committed Aug 14, 2023
1 parent 7c39a0d commit 7bde740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"\n",
"# Read in the volume and get the isocenter\n",
"volume, spacing = load_example_ct()\n",
"translations = torch.tensor([[bx, by, bz]], device=device)\n",
"bx, by, bz = torch.tensor(volume.shape) * torch.tensor(spacing) / 2\n",
"\n",
"# Initialize the DRR module for generating synthetic X-rays\n",
"device = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n",
Expand All @@ -131,7 +131,7 @@
"\n",
"# Set the camera pose with rotations (yaw, pitch, roll) and translations (x, y, z)\n",
"rotations = torch.tensor([[torch.pi, 0.0, torch.pi / 2]], device=device)\n",
"bx, by, bz = torch.tensor(volume.shape) * torch.tensor(spacing) / 2\n",
"translations = torch.tensor([[bx, by, bz]], device=device)\n",
"\n",
"# Make the DRR\n",
"img = drr(rotations, translations)\n",
Expand Down
Empty file added notebooks/tutorials/.notest
Empty file.

0 comments on commit 7bde740

Please sign in to comment.