Skip to content

Commit 5e3c036

Browse files
committed
fix typing and check
1 parent f80e5ba commit 5e3c036

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
@@ -1098,7 +1098,7 @@ def rename_files() -> None:
10981098
else:
10991099
outname = "{}.{}".format(prefix, outtype)
11001100
safe_movefile(res_files, outname, overwrite)
1101-
if isdefined(res.outputs.bids):
1101+
if bids_files:
11021102
try:
11031103
safe_movefile(bids_files, outname_bids, overwrite)
11041104
bids_outfiles.append(outname_bids)

0 commit comments

Comments
 (0)