Skip to content

Commit 613a7d2

Browse files
Update nibabel/nicom/utils.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent c7c6678 commit 613a7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/nicom/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def find_private_section(dcm_data, group_no, creator):
3333
match_func = creator.search
3434
else: # assume string / bytes
3535
creator = asstr(creator)
36-
match_func = lambda x : x == creator
36+
match_func = asstr(creator).__eq__
3737
# Group elements assumed ordered by tag (groupno, elno)
3838
for element in dcm_data.group_dataset(group_no):
3939
elno = element.tag.elem

0 commit comments

Comments
 (0)