Skip to content

Commit

Permalink
Update ACRObject.py
Browse files Browse the repository at this point in the history
simplify variables
  • Loading branch information
mollybuckley authored Jan 18, 2024
1 parent 6cef249 commit 2698256
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hazenlib/ACRObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,7 @@ def measure_orthogonal_lengths(self, mask, slice_index):
"""
dims = mask.shape
dx, dy = self.pixel_spacing
[centre, radius] = self.find_phantom_center(self.images[slice_index])
horizontal = centre[1]
vertical = centre[0]
[(vertical, horizontal), radius] = self.find_phantom_center(self.images[slice_index])

horizontal_start = (horizontal, 0)
horizontal_end = (horizontal, dims[0] - 1)
Expand Down

0 comments on commit 2698256

Please sign in to comment.