Open bearner-hca opened 3 years ago
Hi! I'm not sure if you still need help with this, but i went through the same issue. First, you need to import ImageType from vmat module. Then, you need to specify the subimage. Using your code, should look like this:
import pylinac
from pylinac.vmat import ImageType
drgs = pylinac.DRGS(image_paths=("rtimage_open.dcm","rtimage_drgs.dcm"))
drgs.analyze()
#Group image correct
drgs.plot_analyzed_image()
#Subimage
drgs._plot_analyzed_subimage(ImageType.PROFILE)
This is currently working for me.
Describe the bug The
_plot_analyzed_subimage
method returns an empty pyplot instead of the requested subimage. (Same error for_save_analyzed_subimage
which uses_plot_analyzed_subimage
).To Reproduce
Screenshots
Expected behavior Pyplot of the requested subimage. This method was working in version 2.3.2