We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5894be7 commit 9741ee8Copy full SHA for 9741ee8
heudiconv/convert.py
@@ -1002,7 +1002,8 @@ def save_converted_files(
1002
len(set(filter(bool, channel_names))) > 1
1003
) # Check for uncombined data
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))
+ parts = filter(bool, [IMAGETYPE_TO_PARTS.get(it) for it in image_types])
1006
+ is_complex = len(set(parts)) > 1
1007
echo_times_lst = sorted(echo_times) # also converts to list
1008
channel_names_lst = sorted(channel_names) # also converts to list
1009
0 commit comments