Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picket Fence with Log File exception #527

Open
drmichaeldouglass opened this issue Nov 13, 2024 · 0 comments
Open

Picket Fence with Log File exception #527

drmichaeldouglass opened this issue Nov 13, 2024 · 0 comments

Comments

@drmichaeldouglass
Copy link

drmichaeldouglass commented Nov 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant