Thank you Dan. I am actually just trying to better understand dicompyler and what it can do, so I was working through the "readthedocs" pdf and also looking at the source code when I got stuck. My understanding is calculate_dvh will get you a differential DVH as opposed to get_dvh which gives a cumulative one. It's no big deal because it appears I can calculate and plot a differential DVH with this:
gtv_DVH = rtdose.GetDVHs()[9]
gtv_DVH.name = 'GTV'
gtv_DVH.rx_dose = 20
gtv_DVH.absolute_dose().relative_volume.differential.plot()
I guess my question now is how should I have interpreted the following information on calculate_dvh from the readthedocs file? To my untrained eye, it would suggest it does not require planes and thickness keys.
Furthermore,
b = dvhcalc.get_dvh('structures.dcm', 'dose.dcm', 9)
b.plot()
Works absolutely fine, but the structure and dose parameters are also slightly different when compared to calculate_dvh:
So essentially my question is based on how I can learn to better interpret the readthedocs.
Thanks again for helping. I appreciate it.
Mike