Skip to content
Snippets Groups Projects
Commit 015c0dce authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: SeriesDescription may not be present in dmc2niix json output

parent 43c56c63
No related branches found
No related tags found
No related merge requests found
...@@ -194,6 +194,10 @@ def scanDir(dcmdir): ...@@ -194,6 +194,10 @@ def scanDir(dcmdir):
with open(fn, 'rt') as f: with open(fn, 'rt') as f:
meta = json.load(f) meta = json.load(f)
meta['DicomDir'] = dcmdir meta['DicomDir'] = dcmdir
# SeriesDescription is not
# guaranteed to be present
if 'SeriesDescription' not in meta:
meta['SeriesDescription'] = meta['SeriesNumber']
series.append(meta) series.append(meta)
# sort by series number # sort by series number
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment