Version 1.2

Hello all,
Version 1.2 is here! This release includes some big new things, namely the ability for the CBCT module to analyze the CatPhan 503 (Elekta) as well as a new planar imaging module for analyzing things like the Leeds and PipsPro phantoms. Currently only the Leeds phantom is available, but I’m working on PipsPro and the Las Vegas phantom as well for a future release.

The full list of changes are now available on the RTD site:

As always if you find a bug or want a new feature let me know!


Traceback (most recent call last):
File “X:\QA\Linacs\LinacLA1\QA_Annually\Check_EPID_OBI_PLUS\EPID_kV_Check\Linac-LA1\kV-Linac-LA1\”, line 4, in
File “C:\Python34\lib\site-packages\pylinac-1.2.0-py3.4.egg\pylinac\”, line 230, in analyze
center, radius, binary_img = self._find_phantom()
File “C:\Python34\lib\site-packages\pylinac-1.2.0-py3.4.egg\pylinac\”, line 59, in _find_phantom
threshold = np.percentile(self.image, thres_pct)
File “C:\Python34\lib\site-packages\numpy\lib\”, line 3054, in percentile
File “C:\Python34\lib\site-packages\numpy\lib\”, line 2803, in _ureduce
r = func(a, **kwargs)
File “C:\Python34\lib\site-packages\numpy\lib\”, line 3078, in _percentile
raise ValueError(“Percentiles must be in the range [0,100]”)
ValueError: Percentiles must be in the range [0,100]

TOR_18_avec_Varian_OW-001-0021.dcm (1.5 MB)

I’ve been looking at the image. It indeed fails (due to not finding the phantom ring structure). Unfortunately, the image is 1) noisy and 2) has a non-uniform background. I’ll have to work on ways to compensate for that. For the time being try taking a longer exposure if you can. Sorry