You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to create a PicketFence object using a dicom and log file, I get an exception error
Exception has occurred: IndexError
index 0 is out of bounds for axis 0 with size 0
To Reproduce
Steps to reproduce the behavior:
import os
import pylinac
from pylinac import PicketFence
import pydicom
Paths to the DICOM files and log file
dcm_path = 'C:/Temp/PF Test/20241104/g90.dcm' # Replace with your actual DICOM directory path
log_path = 'C:/Temp/PF Test/20241104/g90.bin' # Replace with your actual log file path
Instantiate the PicketFence object
pf = PicketFence(dcm_path, log=log_path) #exception occurs here
#pf = PicketFence(dcm_path) #This code works as expected (without the log file)
pf.analyze()
pf.plot_analyzed_image()
pf.save_pdf("PicketFence_Report.pdf")
Expected behavior
Expected the PicketFence object to be Instantiated successfully
Additional context
I am using pylinac Version: 3.28.0 on Python 3.10.1 in visual studio code
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to create a PicketFence object using a dicom and log file, I get an exception error
Exception has occurred: IndexError
index 0 is out of bounds for axis 0 with size 0
To Reproduce
Steps to reproduce the behavior:
import os
import pylinac
from pylinac import PicketFence
import pydicom
Paths to the DICOM files and log file
dcm_path = 'C:/Temp/PF Test/20241104/g90.dcm' # Replace with your actual DICOM directory path
log_path = 'C:/Temp/PF Test/20241104/g90.bin' # Replace with your actual log file path
Instantiate the PicketFence object
pf = PicketFence(dcm_path, log=log_path) #exception occurs here
#pf = PicketFence(dcm_path) #This code works as expected (without the log file)
pf.analyze()
pf.plot_analyzed_image()
pf.save_pdf("PicketFence_Report.pdf")
Expected behavior
Expected the PicketFence object to be Instantiated successfully
Additional context
I am using pylinac Version: 3.28.0 on Python 3.10.1 in visual studio code
The text was updated successfully, but these errors were encountered: