Skip to content

Commit

Permalink
Merge pull request #306 from randlet/fix_leeds_tor_invert
Browse files Browse the repository at this point in the history
Perform LeedsTOR inversion check in _check_inversion rather than _preprocess
  • Loading branch information
jrkerns committed Nov 14, 2020
2 parents 63b25d3 + 5a740b7 commit 471216b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pylinac/planar_imaging.py
Expand Up @@ -782,10 +782,12 @@ def run_demo() -> None:
leeds.plot_analyzed_image()

def _preprocess(self) -> None:
self.image.check_inversion_by_histogram()
if self._is_counter_clockwise():
self._flip_image_data()

def _check_inversion(self) -> None:
self.image.check_inversion_by_histogram()

def _flip_image_data(self) -> None:
"""Flip the image left->right and invert the center, and angle as appropriate.
Expand Down

0 comments on commit 471216b

Please sign in to comment.