Hello,
I have been using TIGRE as an external CT reconstruction tool, and appending a DICOM header to it for analysis by pylinac. I have run the pylinac demo as well as a sample from a clinically reconstructed ct which both work. My own files give this error though.
Traceback (most recent call last):
File “C:\Users\drman\PycharmProjects\pythonProject\main.py”, line 9, in
mycbct.analyze()
File “C:\Users\drman\PycharmProjects\pythonProject\venv\lib\site-packages\pylinac\ct.py”, line 1992, in analyze
self.localize()
File “C:\Users\drman\PycharmProjects\pythonProject\venv\lib\site-packages\pylinac\ct.py”, line 1699, in localize
self._phantom_center_func = self.find_phantom_axis()
File “C:\Users\drman\PycharmProjects\pythonProject\venv\lib\site-packages\pylinac\ct.py”, line 1727, in find_phantom_axis
p30, p70 = np.percentile(center_x, [30, 70])
File “<array_function internals>”, line 200, in percentile
File “C:\Users\drman\PycharmProjects\pythonProject\venv\lib\site-packages\numpy\lib\function_base.py”, line 4205, in percentile
return _quantile_unchecked(
File “C:\Users\drman\PycharmProjects\pythonProject\venv\lib\site-packages\numpy\lib\function_base.py”, line 4473, in _quantile_unchecked
return _ureduce(a,
File “C:\Users\drman\PycharmProjects\pythonProject\venv\lib\site-packages\numpy\lib\function_base.py”, line 3752, in _ureduce
r = func(a, **kwargs)
File “C:\Users\drman\PycharmProjects\pythonProject\venv\lib\site-packages\numpy\lib\function_base.py”, line 4639, in _quantile_ureduce_func
result = _quantile(arr,
File “C:\Users\drman\PycharmProjects\pythonProject\venv\lib\site-packages\numpy\lib\function_base.py”, line 4745, in _quantile
take(arr, indices=-1, axis=DATA_AXIS)
File “<array_function internals>”, line 200, in take
File “C:\Users\drman\PycharmProjects\pythonProject\venv\lib\site-packages\numpy\core\fromnumeric.py”, line 190, in take
return _wrapfunc(a, ‘take’, indices, axis=axis, out=out, mode=mode)
File “C:\Users\drman\PycharmProjects\pythonProject\venv\lib\site-packages\numpy\core\fromnumeric.py”, line 57, in _wrapfunc
return bound(*args, **kwds)
IndexError: cannot do a non-empty take from an empty axes.
attached is one slice of the image I’m trying to analyze.
Thank you so much for your help!!
testfile92.dcm (514 KB)