Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Evan Edmond
fslpy
Commits
015c0dce
Commit
015c0dce
authored
Jan 29, 2021
by
Paul McCarthy
🚵
Browse files
RF: SeriesDescription may not be present in dmc2niix json output
parent
43c56c63
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/data/dicom.py
View file @
015c0dce
...
...
@@ -194,6 +194,10 @@ def scanDir(dcmdir):
with
open
(
fn
,
'rt'
)
as
f
:
meta
=
json
.
load
(
f
)
meta
[
'DicomDir'
]
=
dcmdir
# SeriesDescription is not
# guaranteed to be present
if
'SeriesDescription'
not
in
meta
:
meta
[
'SeriesDescription'
]
=
meta
[
'SeriesNumber'
]
series
.
append
(
meta
)
# sort by series number
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment