Interpretation of DoseVolume = \XDR:<number>\;
In the plan.Trial file found within each plan folder for a patient treated in Pinnacle, the rtdose.py script seems to interpret the DoseVolume reference to XDR:
In several cases, I am presented with the error "Failed to export dose: unpack requires a buffer of 4 bytes" which I believe happens when the binary file being referenced for a given beam is empty, i.e. it comes from the penultimate line in:
if os.path.isfile(binary_file):
with open(binary_file, "rb") as b:
for z in range(trial_info["DoseGrid .Dimension .Z"] - 1, -1, -1):
for y in range(0, trial_info["DoseGrid .Dimension .Y"]):
for x in range(0, trial_info["DoseGrid .Dimension .X"]):
data_element = b.read(4)
value = struct.unpack(">f", data_element)[0]
dose_grid[x, y, z] = value
My question is, is it correct that \XDR: