Hi Simon!
I've tried using:
pymedphys.Delivery.from_dicom(imrt_plan_ds, fraction_number=1)
However I keep encountering errors regarding the jaw:
VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
jaw = np.array(dicom_jaw)
and
File "C:\Users\USER\PycharmProjects\venv\lib\site-packages\pymedphys\_dicom\delivery\core.py", line 172, in _from_dicom_beam
second_col = deepcopy(jaw[:, 1])
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
I've yet to try using the mu_density function alone.
I'll update you as soon as I figure it out.
Thanks!