Skip to content

Commit 5894be7

Browse files
committed
fix
1 parent edffc36 commit 5894be7

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

heudiconv/convert.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,16 +1001,8 @@ def save_converted_files(
10011001
is_uncombined = (
10021002
len(set(filter(bool, channel_names))) > 1
10031003
) # Check for uncombined data
1004-
is_complex = len(
1005-
set(
1006-
[
1007-
part
1008-
for its in image_types
1009-
for part in IMAGETYPE_TO_PARTS.keys()
1010-
if part in its or part[0] in its
1011-
]
1012-
)
1013-
) # Determine if data are complex (magnitude + phase or real + imag or all-4)
1004+
# Determine if data are complex (magnitude + phase or real + imag or all-4)
1005+
is_complex = len(set(IMAGETYPE_TO_PARTS.keys()).intersection(image_types))
10141006
echo_times_lst = sorted(echo_times) # also converts to list
10151007
channel_names_lst = sorted(channel_names) # also converts to list
10161008

0 commit comments

Comments
 (0)