qurit / qurit/rt-utils

No SOPClass UID after add_roi

Open
#113 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
256
Forks
75
PR merge metrics
No merged PRs in 30d

Description

I am trying to create a new RT struct using a mask segmented via MATLAB and imported into Python as a numpy array. I used add_roi and then validated the RT struct using RTStructBuilder.validate_rtstruct. This throws an error "AttributeError: 'RTStruct' object has no attribute 'SOPClassUID'". The new RT struct also does not have attributes "ROIContourSequence", "StructureSetROISequence", or "RTROIObservationsSequence". Any suggestions on how to figure out what is going wrong or how to fix it would be helpful!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the MATLAB mask import and add_roi flow, then inspect RTStructBuilder.validate_rtstruct and the resulting RTStruct attributes. Done means the created RT struct contains SOPClassUID, ROIContourSequence, StructureSetROISequence, and RTROIObservationsSequence without validation raising AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.