We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3541157 commit 938ca29Copy full SHA for 938ca29
heudiconv/convert.py
@@ -1055,7 +1055,8 @@ def save_converted_files(
1055
len(set(filter(bool, channel_names))) > 1
1056
) # Check for uncombined data
1057
# Determine if data are complex (magnitude + phase or real + imag or all-4)
1058
- is_complex = len(set(IMAGETYPE_TO_PARTS.keys()).intersection(image_types))
+ parts = filter(bool, [IMAGETYPE_TO_PARTS.get(it) for it in image_types])
1059
+ is_complex = len(set(parts)) > 1
1060
echo_times_lst = sorted(echo_times) # also converts to list
1061
channel_names_lst = sorted(channel_names) # also converts to list
1062
0 commit comments