So my WL printout also did this when I added collimator or couch variables - the combo images did not print out.
One thing I did notice between these two codes:
2.2.6 :
def plot_images(self, axis: str=ALL, show: bool=True):
2.3.2:
def plot_images(self, axis: str=GANTRY, show: bool=True):
similarly for save_images which does call plot_images:
def save_images(self, filename: str, axis: str=ALL, **kwargs):
def save_images(self, filename: str, axis: str=GANTRY, **kwargs):
However, you’d think that in this loop, GBP_COMBO would be called:
add more pages showing individual axis images
for ax in (GANTRY, COLLIMATOR, COUCH, GBP_COMBO):
if self._contains_axis_images(ax):
canvas.add_new_page()
data = io.BytesIO()
self.save_images(data, axis=ax, figsize=(10, 10))
canvas.add_image(data, location=(2, 7), dimensions=(18, 18))
However, it seemed to be excluded by the “if” statement, not sure why.
Being an unexperienced programmer, I decided to force the issue. Maybe someone better understands what’s going on here?
add more pages showing individual axis images
for ax in (GANTRY, COLLIMATOR, COUCH, GBP_COMBO):
if ax is GBP_COMBO:
print(GBP_COMBO + ’ forced printout by user’)
canvas.add_new_page()
data = io.BytesIO()
self.save_images(data, axis=ax, figsize=(10, 10))
#JSH self.plot_images(axis=axis, show=False)
canvas.add_image(data, location=(2, 7), dimensions=(18, 18))
if self._contains_axis_images(ax):
print(‘Printing:’ + ax)
canvas.add_new_page()
data = io.BytesIO()
self.save_images(data, axis=ax, figsize=(10, 10))
canvas.add_image(data, location=(2, 7), dimensions=(18, 18))