-
Notifications
You must be signed in to change notification settings - Fork 265
Ignore unreadable siemens private headers #818
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-11-11 15:57:08 UTC |
@hbraunDSP Is this still a WIP? If you can find a test file, that'd be great. Feel free to submit to https://github.com/effigies/nitest-dicom/. |
It should be good to go...I'll be sending a file for testing soon. Thanks for the reminder! |
We'll need to update git submodule init
git submodule sync
git submodule update
git -C nibabel-data/nitest-dicom fetch
git -C nibabel-data/nitest-dicom checkout origin/master
git add nibabel-data/nitest-dicom Then we'll need to add the new file as follows: nibabel/nibabel/nicom/tests/test_dicomwrappers.py Lines 40 to 41 in ddf2683
And test it similar to the following: nibabel/nibabel/nicom/tests/test_dicomwrappers.py Lines 628 to 634 in ddf2683
|
Codecov Report
@@ Coverage Diff @@
## master #818 +/- ##
==========================================
+ Coverage 90.1% 90.36% +0.26%
==========================================
Files 96 96
Lines 11911 12196 +285
Branches 2125 2136 +11
==========================================
+ Hits 10732 11021 +289
+ Misses 834 832 -2
+ Partials 345 343 -2
Continue to review full report at Codecov.
|
@hbraunDSP Just a bump on these tests. If you don't have time, I can make a quick PR to your branch. |
See hbraunDSP#2. |
I can't really look at this until Wednesday, sorry. I just merged your PR after a brief glance. |
TEST: Basic tests for CT DICOM image
I think this is good as-is, and we're now getting full diff coverage (thanks!). Feel free to open a new PR if there's anything else you'd like to update... |
Workaround for #812.
dicomwrappers.py will catch and recover from a
CSAReadError
in csarereader.py, settingcsa=None
and giving a warning. This allows use on some dicoms with CSA headers that are unreadable by nibabel, either because they are corrupted or not supported yet.