No SOPClass UID after add_roi
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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