Skip to content

Commit

Permalink
Update heudiconv/convert.py
Browse files Browse the repository at this point in the history
Co-authored-by: miltoncamachocamacho <[email protected]>
  • Loading branch information
bpinsard and miltoncamachocamacho authored Jul 18, 2024
1 parent 9f2cf4b commit 1eb6a1a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions heudiconv/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,15 +981,12 @@ def save_converted_files(
) # Check for uncombined data
CPLX_PARTS = ["MAGNITUDE", "PHASE", "IMAGINARY", "REAL"]
is_complex = len(
set(
[
part
for its in image_types
for part in CPLX_PARTS
if part in its or part[0] in its
]
)
) # Determine if data are complex (magnitude + phase or real + imag or all-4)
set(
its
for its in image_types
if any(part == its for part in CPLX_PARTS)
)
) # Determine if data are complex (magnitude + phase or real + imag or all-4)
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 1eb6a1a

Please sign in to comment.