We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2a40e commit e9b9a10Copy full SHA for e9b9a10
nibabel/nicom/dicomwrappers.py
@@ -80,11 +80,12 @@ def wrapper_from_data(dcm_data):
80
return MultiframeWrapper(dcm_data)
81
# Check for Siemens DICOM format types
82
# Only Siemens will have data for the CSA header
83
- try:
+ try:
84
csa = csar.get_csa_header(dcm_data)
85
except csar.CSAReadError as e:
86
- warnings.warn('Error while attempting to read CSA header: '+
87
- str(e.args) + '\n Ignoring Siemens private (CSA) header info.')
+ warnings.warn('Error while attempting to read CSA header: ' +
+ str(e.args) +
88
+ '\n Ignoring Siemens private (CSA) header info.')
89
csa = None
90
if csa is None:
91
return Wrapper(dcm_data)
0 commit comments