Commit 015c0dce authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: SeriesDescription may not be present in dmc2niix json output

parent 43c56c63
......@@ -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']
# sort by series number
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment