Skip to content

Trying to access MosaicRefAcqTimes with .get returns None #1665

Answered by mrbean-bremen
TamerGezici asked this question in Q&A
Discussion options

You must be logged in to vote

This is a private tag, it cannot be accessed using a description string - you need the tag ID instead, e.g. something like ds.get(0x00191029), or, more accurately, access it via the private block as shown in the documentation:

  block = ds.private_block(0x0009, 'SIEMENS MR HEADER')
  if block and 0x29 in block:
      value = block[0x29].value

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by TamerGezici
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1664 on July 20, 2022 14:47.