Hi All,
i think I have seen this error posted already but I couln’t see a solution. I can run Caphan503 module no problem on out Catphan503 image.
I’ve also got a Catphan600 image I’d like to analyze with Pylinac but I’m getting hits message:
Traceback (most recent call last):
File “C:\TEMP\CATPHAN600\analysis600.py”, line 18, in
results = mycbct.results_data()
File “C:\Users\johnccronin\Anaconda3\lib\site-packages\pylinac\ct.py”, line 1992, in results_data
mtf_lp_mm={
File “C:\Users\johnccronin\Anaconda3\lib\site-packages\pylinac\ct.py”, line 1993, in
p: self.ctp528.mtf.relative_resolution(p) for p in (80, 50, 30)
File “C:\Users\johnccronin\Anaconda3\lib\site-packages\cached_property.py”, line 36, in get
value = obj.dict[self.func.name] = self.func(obj)
File “C:\Users\johnccronin\Anaconda3\lib\site-packages\pylinac\ct.py”, line 1092, in mtf
mtf = MTF(lp_spacings=spacings, lp_maximums=maxs, lp_minimums=mins)
File “C:\Users\johnccronin\Anaconda3\lib\site-packages\pylinac\core\mtf.py”, line 49, in init
max_delta = np.max(np.diff(list(self.norm_mtfs.values())))
File “<array_function internals>”, line 5, in amax
File “C:\Users\johnccronin\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py”, line 2754, in amax
return _wrapreduction(a, np.maximum, ‘max’, axis, None, out,
File “C:\Users\johnccronin\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py”, line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation maximum which has no identity
Any ideas?
Thanks,
John