Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bpinsard committed Sep 24, 2024
1 parent 44544e4 commit 152fc2d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions heudiconv/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,16 +992,8 @@ def save_converted_files(
is_uncombined = (
len(set(filter(bool, channel_names))) > 1
) # Check for uncombined data
is_complex = len(
set(
[
part
for its in image_types
for part in IMAGETYPE_TO_PARTS.keys()
if part in its or part[0] in its
]
)
) # Determine if data are complex (magnitude + phase or real + imag or all-4)
# Determine if data are complex (magnitude + phase or real + imag or all-4)
is_complex = len(set(IMAGETYPE_TO_PARTS.keys()).intersection(image_types))
echo_times_lst = sorted(echo_times) # also converts to list
channel_names_lst = sorted(channel_names) # also converts to list

Expand Down

0 comments on commit 152fc2d

Please sign in to comment.