Skip to content

Commit 9aac591

Browse files
committed
Use False instead of NaN bc filter wasn't catching NaNs.
1 parent 8306ed1 commit 9aac591

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

heudiconv/convert.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,9 @@ def save_converted_files(res, item_dicoms, bids_options, outtype, prefix, outnam
694694
for metadata in bids_metas:
695695
if not metadata:
696696
continue
697-
echo_times.add(metadata.get('EchoTime', nan))
698-
channel_names.add(metadata.get('CoilString', nan))
699-
image_types.update(metadata.get('ImageType', [nan]))
697+
echo_times.add(metadata.get('EchoTime', False))
698+
channel_names.add(metadata.get('CoilString', False))
699+
image_types.update(metadata.get('ImageType', [False]))
700700
is_multiecho = len(set(filter(bool, echo_times))) > 1 # Check for varying echo times
701701
is_uncombined = len(set(filter(bool, channel_names))) > 1 # Check for uncombined data
702702
is_complex = 'M' in image_types and 'P' in image_types # Determine if data are complex (magnitude + phase)

0 commit comments

Comments
 (0)