Skip to content

Commit 7c84be6

Browse files
committed
fix pep8 problems
1 parent e9b9a10 commit 7c84be6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

nibabel/nicom/csareader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ def read(csa_str):
100100
csa_dict['n_tags'], csa_dict['check'] = up_str.unpack('2I')
101101
if not 0 < csa_dict['n_tags'] <= MAX_CSA_ITEMS:
102102
raise CSAReadError('Number of tags `t` should be '
103-
'0 < t <= %d. Instead found %d tags.' % (MAX_CSA_ITEMS, csa_dict['n_tags']))
103+
'0 < t <= %d. Instead found %d tags.'
104+
% (MAX_CSA_ITEMS, csa_dict['n_tags']))
104105
for tag_no in range(csa_dict['n_tags']):
105106
name, vm, vr, syngodt, n_items, last3 = \
106107
up_str.unpack('64si4s3i')

nibabel/nicom/dicomwrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def wrapper_from_data(dcm_data):
8484
csa = csar.get_csa_header(dcm_data)
8585
except csar.CSAReadError as e:
8686
warnings.warn('Error while attempting to read CSA header: ' +
87-
str(e.args) +
87+
str(e.args) +
8888
'\n Ignoring Siemens private (CSA) header info.')
8989
csa = None
9090
if csa is None:

0 commit comments

Comments
 (0)