I have done an analysis of the PF with version 2.5.0.0 and it worked fine, but when doing it with version 3.15 I get the following error
File C:\ProgramData\anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File i:\fismed\personales\mario\ruedapf\central\pfbuenohd.py:35
pf.analyze(tolerance=0.15, action_tolerance=0.03)
File ~\AppData\Roaming\Python\Python311\site-packages\pylinac\picketfence.py:596 in analyze
window = self._get_mlc_window(
File ~\AppData\Roaming\Python\Python311\site-packages\pylinac\picketfence.py:694 in _get_mlc_window
left_edge = max(int(approx_idx - spacing / 2), 0)
ValueError: cannot convert float NaN to integer
I do the analysis with
mlc_config = MLCArrangement(leaf_arrangement=[(32, 2.5)])
The center of the MLC_120HD
pf = PicketFence(pf_img,mlc=mlc_config)
pf.analyze(tolerance=0.15, action_tolerance=0.03)
It seems that it is a mistake with the spacing that passes it as Nan
thanks
RI.VMAT QA.MV_0_0a.dcm (2.7 MB)