Skip to content

Commit

Permalink
Merged in feature/RAM-4046_inactive_wl_plots (pull request #469)
Browse files Browse the repository at this point in the history
don't plot WL figs for lack of axis images

Approved-by: Randy Taylor
  • Loading branch information
jrkerns committed Nov 5, 2024
2 parents 1ca7276 + dc25e76 commit cd50452
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pylinac/winston_lutz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1875,6 +1875,8 @@ def plotly_analyzed_images(
for image in self.images
if image.variable_axis in (variable_axis, Axis.REFERENCE)
]
if not imgs:
continue
angles = [
getattr(image, f"{variable_axis.value.lower()}_angle") for image in imgs
]
Expand Down
7 changes: 6 additions & 1 deletion tests_basic/test_winstonlutz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1506,10 +1506,12 @@ class WLDontUseFileNames(WinstonLutzMixin, TestCase):
}


class WLUseFileNames(WinstonLutzMixin, TestCase):
class WLUseFileNames(WinstonLutzMixin, PlotlyTestMixin, TestCase):
file_name = "Naming.zip"
use_filenames = True
num_images = 4
# For below, note that gantry, couch, and epid POV plots are not made due to lack of isolated-axis images. This is on purpose.
num_figs = 7
collimator_iso_size = 1.2
cax2bb_max_distance = 0.9
cax2bb_median_distance = 0.8
Expand All @@ -1522,6 +1524,9 @@ class WLUseFileNames(WinstonLutzMixin, TestCase):
3: Axis.COLLIMATOR,
}

def setUp(self) -> None:
self.instance = self.wl


class WLBadFilenames(TestCase):
def test_bad_filenames(self):
Expand Down

0 comments on commit cd50452

Please sign in to comment.