Skip to content

What is format preservation, and how can I disable it? #401

Answered by Enet4
jennydaman asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, "format preservation" refers to the parser's value reading strategy that preserves textual values (numbers and dates) as strings. It is currently only available as an option in the dicom_parser data set reader API, as the use of any other strategy in the object API could bring other issues in the loading process. Namely, the strategy that reads everything as bytes has never really been tried here, and the strategy to convert textual numbers and dates would often choke on non-compliant or unsupported DICOM data.

It would be great if you could share the use case for changing the value reading strategy. It is generally sufficient to use one of the various to_* methods in the DICOM value…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Enet4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants