WinstonLutz test analysis in v.2.3.2

Hi James,

I just found that Pylinac version 2.3.2 produces slightly different results compared to version 2.2.6 which is understandable for algorithm change.
But a weird thing after this upgrade is that the version 2.3.2 does not show the Combo images which used be seen in version 2.2.6.

Could you look into that why I can not see the Combo images in version 2.3.2?

I attached the pdf files which are acquired in version 2.2.6 and 2.3.2 and W/L dicom files in this post.

Thanks.

Best Regards,
Sangroh

W-L Analysis-v2.2.6.pdf (250 KB)

W-L Analysis-v2.3.2.pdf (180 KB)

WL_dicom.zip (4.32 MB)

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))