Skip to content

Commit 4b5ed7a

Browse files
committed
fix typing and check
1 parent 8f961f9 commit 4b5ed7a

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
@@ -11,7 +11,7 @@
1111
import shutil
1212
import sys
1313
from types import ModuleType
14-
from typing import TYPE_CHECKING, Any, List, Optional, cast
14+
from typing import TYPE_CHECKING, Any, List, Optional, Tuple, cast
1515

1616
import filelock
1717
from nipype import Node
@@ -853,7 +853,7 @@ def filter_partial_volumes(
853853
nii_files: list[str],
854854
bids_files: list[str],
855855
bids_metas: list[dict[str, Any]],
856-
):
856+
) -> Tuple[list[str] | str, list[str] | str, list[Any] | Any]:
857857
"""filter interrupted 4D scans volumes with missing slices on XA: see dcm2niix #742
858858
859859
Parameters
@@ -1091,7 +1091,7 @@ def save_converted_files(
10911091
else:
10921092
outname = "{}.{}".format(prefix, outtype)
10931093
safe_movefile(res_files, outname, overwrite)
1094-
if isdefined(res.outputs.bids):
1094+
if bids_files:
10951095
try:
10961096
safe_movefile(bids_files, outname_bids, overwrite)
10971097
bids_outfiles.append(outname_bids)

0 commit comments

Comments
 (0)