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 @@ -992,16 +992,8 @@ def save_converted_files(
992992 is_uncombined = (
993993 len (set (filter (bool , channel_names ))) > 1
994994 ) # Check for uncombined data
995- is_complex = len (
996- set (
997- [
998- part
999- for its in image_types
1000- for part in IMAGETYPE_TO_PARTS .keys ()
1001- if part in its or part [0 ] in its
1002- ]
1003- )
1004- ) # Determine if data are complex (magnitude + phase or real + imag or all-4)
995+ # Determine if data are complex (magnitude + phase or real + imag or all-4)
996+ is_complex = len (set (IMAGETYPE_TO_PARTS .keys ()).intersection (image_types ))
1005997 echo_times_lst = sorted (echo_times ) # also converts to list
1006998 channel_names_lst = sorted (channel_names ) # also converts to list
1007999
You can’t perform that action at this time.
0 commit comments