Skip to content

Commit 152fc2d

Browse files
committed
fix
1 parent 44544e4 commit 152fc2d

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
@@ -992,16 +992,8 @@ def save_converted_files(
992992
is_uncombined = (
993993
len(set(filter(bool, channel_names))) > 1
994994
) # Check for uncombined data
995-
is_complex = len(
996-
set(
997-
[
998-
part
999-
for its in image_types
1000-
for part in IMAGETYPE_TO_PARTS.keys()
1001-
if part in its or part[0] in its
1002-
]
1003-
)
1004-
) # Determine if data are complex (magnitude + phase or real + imag or all-4)
995+
# Determine if data are complex (magnitude + phase or real + imag or all-4)
996+
is_complex = len(set(IMAGETYPE_TO_PARTS.keys()).intersection(image_types))
1005997
echo_times_lst = sorted(echo_times) # also converts to list
1006998
channel_names_lst = sorted(channel_names) # also converts to list
1007999

0 commit comments

Comments
 (0)