Skip to content

Commit

Permalink
Rename f to sdd
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenvivek committed Dec 20, 2024
1 parent cbf9c46 commit fa5b902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diffdrr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(
):
super().__init__(intrinsics, extrinsics, height, width)
multiplier = -1 if subject.orientation == "PA" else 1
self.f = multiplier * detector.sdd
self.sdd = multiplier * detector.sdd
self.delx = detector.delx
self.dely = detector.dely
self.x0 = detector.x0
Expand Down
2 changes: 1 addition & 1 deletion notebooks/api/07_utils.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
" ):\n",
" super().__init__(intrinsics, extrinsics, height, width)\n",
" multiplier = -1 if subject.orientation == \"PA\" else 1\n",
" self.f = multiplier * detector.sdd\n",
" self.sdd = multiplier * detector.sdd\n",
" self.delx = detector.delx\n",
" self.dely = detector.dely\n",
" self.x0 = detector.x0\n",
Expand Down

0 comments on commit fa5b902

Please # to comment.