File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ def ants_brain_extraction(
3838 outputs are the bias-corrected brain image and the brain mask.
3939
4040 Args:
41- in_file: Input anatomical T1w image to perform brain extraction on. In RBC this is the Reoriented (RPI) T1w.
41+ in_file: Input anatomical T1w image to perform brain extraction on.
42+ In RBC this is the reoriented (RPI) T1w.
4243
4344 Returns:
4445 ANTs brain extraction outputs (brain image, brain mask, N4-corrected
Original file line number Diff line number Diff line change 1717
1818
1919def nifti_num_volumes (in_file : str | Path ) -> int :
20- """Return the number of volumes in a NIfTI image (returns 1 for 3-D images).
21- """
20+ """Return the number of volumes in a NIfTI image (returns 1 for 3-D images)."""
2221 shape = nibabel .nifti1 .load (in_file ).shape
2322 return shape [3 ] if len (shape ) > 3 else 1
You can’t perform that action at this time.
0 commit comments