We observed a warning message shown after loading an RTStruct in one of our treatment planning software.
This warning can be seen in the following screenshot
We were able to fix this by giving the condition that a CLOSED_PLANAR contour type needs to contain at least 2 data points in order to be added to the contour sequence (this was not always the case and we saw cases where the number of contour points only contained one data point.
We are also aware that the Contour Geometric Type is currently hardcoded in the create_contour method.
To future-proof our bug fix we added the or condition which would theoretically allow for adding a POINT contour type in the conversion without issues arising from our change.
We observed a warning message shown after loading an RTStruct in one of our treatment planning software. This warning can be seen in the following screenshot
We were able to fix this by giving the condition that a CLOSED_PLANAR contour type needs to contain at least 2 data points in order to be added to the contour sequence (this was not always the case and we saw cases where the number of contour points only contained one data point.
We are also aware that the Contour Geometric Type is currently hardcoded in the
create_contour
method. To future-proof our bug fix we added theor
condition which would theoretically allow for adding a POINT contour type in the conversion without issues arising from our change.