Skip to content

v2.2.0

Compare
Choose a tag to compare
@lamyj lamyj released this 03 Sep 12:39
· 131 commits to master since this release
v2.2.0
3099c12

Dicomifier 2.2.0 adds parsing the protocol data contained in the private DICOM fields generated by Siemens MR scanners. They can be read from the JSON metadata created by Dicomifier as follows:

import base64
import json

import dicomifier

with open("/somewhere/1.json") as fd:
    meta_data = json.load(fd)
csa = dicomifier.dicom_to_nifti.siemens.parse_csa(base64.b64decode(meta_data["00291020"][0]))
protocol = dicomifier.dicom_to_nifti.siemens.parse_ascconv(csa["MrPhoenixProtocol"][0])

# `protocol` is a dictionary of all items in the ASCCONV section, e.g.
train_length = protocol["sFastImaging"]["lEPIFactor"]

This release also fixes a bug in reading the private DICOM fields.