DICOM import with missing CodeValues
When attempting to import images which have the "Requested Procedure Code Sequence" tag but no value openrem_mg.py crashes after calling get_values.py from tools because the attribute called (seq[0].CodeValue) does not exist.
Comments (8)
-
-
Merged in jacole/openrem/jacole/refs-68-amended-get_valuespy-to-check-t-1395401551801 (pull request #5)
Addresses
#68, needs a little more testing.Refs
#68Attribute check for get_values.py→ <<cset 5483cee08949>>
-
Merged in jacole/openrem/jacole/refs-68-amended-get_valuespy-to-check-t-1395401551801 (pull request #5)
Addresses
#68, needs a little more testing.Refs
#68Attribute check for get_values.py→ <<cset 5483cee08949>>
-
- changed status to open
-
- changed milestone to 0.4.0
-
Added tests folder with initial test for the get_values tool to test JA Cole's fix ref
#68. Modified settings.py to enable tests to be run in dev env.→ <<cset 48c5339a8764>>
-
- changed status to resolved
Tidied up get_value tests, added get_meaning tests. Fixes
#68. Thanks to JA Cole.→ <<cset bdb4a05306f3>>
-
Merging branch used to create test scripts for missing code values fix ref
#68.→ <<cset 43e86d2e4e43>>
- Log in to comment
Refs
#68Amended get_values.py to check that attribute exists before trying to access it, preventing crashes where the sequence is found but no value is present.→ <<cset 0d4e9bc6ec2e>>