Skip to content

Commit 51f8a36

Browse files
committed
Revert ants registration output tuple name
1 parent 2c24d9f commit 51f8a36

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/rbc/core/anatomical/registration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
_PREFIX = "ants_reg"
2222

2323

24-
class Transforms(NamedTuple):
25-
"""Forward and inverse composite transformation paths."""
24+
class CompositeTransforms(NamedTuple):
25+
"""Transformed brain nifti, forward and inverse composite transformation paths."""
2626

2727
brain: Path
2828
forward: Path
2929
inverse: Path
3030

3131

32-
def ants_registration(in_file: Path, seed: int = CPAC_ANTS_SEED) -> Transforms:
32+
def ants_registration(in_file: Path, seed: int = CPAC_ANTS_SEED) -> CompositeTransforms:
3333
"""Register a skull-stripped T1w to the MNI152 1 mm template with ANTs.
3434
3535
Runs a three-stage registration (Rigid -> Affine -> SyN) and then
@@ -165,7 +165,7 @@ def ants_registration(in_file: Path, seed: int = CPAC_ANTS_SEED) -> Transforms:
165165
print_out_composite_warp_file=True,
166166
),
167167
)
168-
return Transforms(
168+
return CompositeTransforms(
169169
brain=registration.root / f"{_PREFIX}_Warped.nii.gz",
170170
forward=fwd.output.output_image_outfile,
171171
inverse=rev.output.output_image_outfile,

0 commit comments

Comments
 (0)