Skip to content

Commit 48cb692

Browse files
Joerg Stadleryarikoptic
authored andcommitted
BF: #427 Sort of None echotime was not working. Replaced with nan
Yaroslav adjusted to import nan at the module level and straight from math module.
1 parent 2dd71e8 commit 48cb692

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

heudiconv/convert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import os.path as op
44
import logging
5+
from math import nan
56
import shutil
67
import sys
78

@@ -530,7 +531,7 @@ def save_converted_files(res, item_dicoms, bids_options, outtype, prefix, outnam
530531

531532
# Check for varying echo times
532533
echo_times = sorted(list(set(
533-
load_json(b).get('EchoTime', None)
534+
load_json(b).get('EchoTime', nan)
534535
for b in bids_files
535536
if b
536537
)))

0 commit comments

Comments
 (0)