iterall() not recursing into all sequences #1359
Unanswered
marcelzwiers
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Instead of if elem.keyword == tagname:
... Note Alternatively you could call It works for 'Radiopharmaceutical' because the name and the keyword happen to be the same. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a scientist writing an application for other scientists, i.e. I'm not a DICOM nor a python expert. In my application I want to get the value belonging to a certain (user-inputted) DICOM tag. I use
ds.iterall()
for that and that works well for some sequences but not for others, and I can't wrap my head around to why that is or how to solve this. I looked into the code ofiterall()
to see if I could fix this, but that looked fine to me (it relies onVR='SQ'
to recurse into sequences). I also tried google to find an answer, but found nothing there. Hence I'm reaching out to you.Here's an example in which
Radiopharmaceutical
works fine, but not e.g.RadiopharmaceuticalStartTime
. Yet I know the latter is there, right next toRadiopharmaceutical
, because I see it when I print the sequence value. Looking into the datastructure didn't help me any further (see screenshot at the bottom), I hope you have a suggestion for me on how to proceed?Beta Was this translation helpful? Give feedback.
All reactions