Quart Phantom Expected HU Values

Dear all,
I am trying to analyze my Quart Phantom using Pylinac. For this I would like to use custom expected HU values. But when I try to give the analyze function an argument expected _hu_values, the code returns an error like this

Traceback (most recent call last): File "D:\NG\WPy64-31150\python-3.11.5.amd64\Lib\idlelib\run.py", line 579, in runcode exec(code, self.locals) File "D:\NG\CBCT_Kopie.py", line 65, in <module> quart.analyze(hu_tolerance=50, expected_hu_values={"Poly": -32, "Acrylic": 122, "Teflon": 960} ) TypeError: QuartDVT.analyze() got an unexpected keyword argument 'expected_hu_values'

I already checked that I am using the newest version of PyLinac (v 3.17.0)!

Can someone help me and tell me what I’m doing wrong?
Thanks :smile:

Hi Lena,

as far as I understand the code you can’t override the expected_hu_values at the moment. The vales are hard coded in the source of the QuartHUModule
(Material/HU assignment at top of the page).

Only when you call the analyze function (which has not keyword argument “expected_hu_values”) the QuartHUModule is created but without the option to set the expected hu values (see code here).

The latest pylianc version is v 3.32.0 btw.

regards
Thomas

Thanks for your quick reply!
And sorry for the confusion with the versions. I am using v3.17.0.
The documentation for that version states that there should be an optional argument ( Quart - pylinac 3.17.0 documentation)

Is it maybe a mistake in the documentation and there is no option for custom Hu values?