File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1001,16 +1001,8 @@ def save_converted_files(
1001
1001
is_uncombined = (
1002
1002
len (set (filter (bool , channel_names ))) > 1
1003
1003
) # Check for uncombined data
1004
- is_complex = len (
1005
- set (
1006
- [
1007
- part
1008
- for its in image_types
1009
- for part in IMAGETYPE_TO_PARTS .keys ()
1010
- if part in its or part [0 ] in its
1011
- ]
1012
- )
1013
- ) # Determine if data are complex (magnitude + phase or real + imag or all-4)
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 ))
1014
1006
echo_times_lst = sorted (echo_times ) # also converts to list
1015
1007
channel_names_lst = sorted (channel_names ) # also converts to list
1016
1008
You can’t perform that action at this time.
0 commit comments