Issues with readDicomPlan for proton plans using repainting

There is a single spot check in _planProtonLayer. For the RTplan exported from RayStation, it will run into error when the plan have two spots at the same position. There is no time sequence in the RTplan, so the startime and irradiationDuration is None.

Hello,

It’s indeed not possible to load the exact same spot twice unless there’s a difference in timing. Could you clarify the reasoning behind the approach you’re using in RayStation and what data is stored in your plan? I assume that in the case of repainting, having the same spot multiple times should be allowed, but there needs to be a way to distinguish between them.

We could then implement a fix in OpenTPS to enable the loading of repainting plans.