New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force conformance on ACR-NEMA 300 formatted DA values #1366
Comments
I was actually thinking of converting this old data by just using the canonical string representation as |
I'm not sure what you mean by "canonical" here - conforming to the Standard? At a quick glance at the first version of PR, it looks like it kept the original. In any case I think On writing, it could be converted to Standard-conformant if On the other hand, I'd support warning on setting as @scaramallion suggested, and could extend that to all invalid DICOM values. Do we have a flag to turn warnings like that on or off? It feels like we should but I can't think of an existing one that fits. It would be good to have it for people working with old files not to be bothered with too many warning messages. I just glanced at the pydicom config flags - we do have a lot of them, and maybe some consolidation would help - this goes to comments in #1232 about taming the idea of 'strict' DICOM flags. Apologies that the last couple of paragraphs perhaps adding more to this than just the discussion at hand. But perhaps it is worth thinking about that larger picture a little while we are on the subject. |
Thank you for the extensive response!
Yes, should have called it that...
I didn't push that first version - I was a bit undecided, but in the end thought that
Agreed about the writing. I actually think that writing conforming to the Standard should be the default behavior. Anyway, I think I will finish the PR as is a minor change, and we can take the time to discuss this issue in more depth. |
That is happening in #1232 now... |
We have code in the DA class that allow invalidly formatted values:
I suggest we force conformance on these values (just when the DA class is being used, not when using str) and warn instead of allowing the pass-through:
The text was updated successfully, but these errors were encountered: