-
Notifications
You must be signed in to change notification settings - Fork 265
BF: Fix hardcoded maximum number of CSA tags #798
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
Conversation
Hello @hbraunDSP, Thank you for updating! Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, Comment last updated at 2019-09-03 14:26:23 UTC |
Codecov Report
@@ Coverage Diff @@
## master #798 +/- ##
==========================================
- Coverage 90.08% 82.19% -7.89%
==========================================
Files 95 95
Lines 11903 11903
Branches 2124 2124
==========================================
- Hits 10723 9784 -939
- Misses 835 1816 +981
+ Partials 345 303 -42
Continue to review full report at Codecov.
|
This looks reasonable to me, but I don't know enough about the format. @matthew-brett Do you know if this 128 limit was supposed to be format imposed, or was just considered a reasonable upper bound at the time? |
Yes, just reasonable upper bound. We were just building the parser, and wanted to make sure it didn't run away with us, if the format was not as we expected. |
Great. @hbraunDSP is there any chance you have a test file you'd be able to share with us to add to our test suite? |
I don't have a test file but I'll definitely look into writing one. |
To be clear, I meant a DICOM file that we can add to our battery that will cause the existing tests to hit this code path, not necessarily writing a new test. |
Co-Authored-By: Chris Markiewicz <[email protected]>
I do have a file that generated an error and prompted me to look into this. As soon as I can confirm it doesn't contain any PHI or other sensitive data I'll add it. |
I'm realizing that we're not actually going to cover the missing lines codecov is complaining about. The pass condition was already being hit, and we're making it less likely to hit the error condition. So at best it would be a check that we're no longer failing on files with 129-1000 tags, which is not a very clear gain. Sorry for the trouble. I'll merge after tests pass. |
No problem. I might still make a header with exactly |
If you do want to submit a test file, please send it to https://github.com/effigies/nitest-dicom/. |
It looks like a hardcoded limit of 128 CSA tags was left over in one place after raising it to 1000 everywhere else. This fixes that oversight.