NickChng / DoseConverter

MIT License
4 stars 0 forks source link

Script fails to run in course that contains no-image plans #1

Open brjdenis opened 1 year ago

brjdenis commented 1 year ago

Hi there!

Nice job with the script. I like the "base plan" option to say the least.

Here is an errror I got during experimentiation: When you run the script on a plan that belongs to a course which contains at least one plansetup that has no image attached, the script will crash. Such plans are sometimes created for simulation in Plan Parameters and usually contain a setup field and maybe a treatment field, but have no CT image behind them. Perhaps you could filter out such plans when reading plansetups for GUI.

Denis

NickChng commented 1 year ago

Hi Denis,

Thanks for the bug report!

I believe I've fixed this in the latest commit (v1.1.2.0), which also includes automatic detection of when the structure set is in an approved course (which is solved by the creation of a temporary structure set)