Skip to content

Commit c0a3c7f

Browse files
committed
fix: clean auto tests and white spaces
1 parent 15440fd commit c0a3c7f

File tree

8 files changed

+33
-36
lines changed

8 files changed

+33
-36
lines changed

doc/documentation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Previous versions: `0.12.0 <http://nipype.readthedocs.io/en/0.12.0/>`_ `0.11.0
2929
:maxdepth: 2
3030

3131
users/index
32-
32+
3333
.. toctree::
3434
:maxdepth: 1
3535

doc/users/config_file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Execution
145145
crashfiles allow interactive debugging and rerunning of nodes, while text
146146
crashfiles allow portability across machines and shorter load time.
147147
(possible values: ``pklz`` and ``txt``; default value: ``pklz``)
148-
148+
149149
Example
150150
~~~~~~~
151151

nipype/algorithms/confounds.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -306,28 +306,28 @@ class CompCorInputSpec(BaseInterfaceInputSpec):
306306
realigned_file = File(exists=True, mandatory=True,
307307
desc='already realigned brain image (4D)')
308308
mask_files = InputMultiPath(File(exists=True),
309-
desc=('One or more mask files that determines '
309+
desc=('One or more mask files that determines '
310310
'ROI (3D)'))
311311
merge_method = traits.Enum('union', 'intersect', 'none', xor=['mask_index'],
312312
requires=['mask_files'],
313-
desc=('Merge method if multiple masks are '
314-
'present - `union` aggregates all masks, '
315-
'`intersect` computes the truth value of '
316-
'all masks, `none` performs CompCor on '
313+
desc=('Merge method if multiple masks are '
314+
'present - `union` aggregates all masks, '
315+
'`intersect` computes the truth value of '
316+
'all masks, `none` performs CompCor on '
317317
'each mask individually'))
318318
mask_index = traits.Range(low=0, xor=['merge_method'],
319319
requires=['mask_files'],
320-
desc=('Position of mask in `mask_files` to use - '
320+
desc=('Position of mask in `mask_files` to use - '
321321
'first is the default'))
322322
components_file = File('components_file.txt', exists=False, usedefault=True,
323323
desc='Filename to store physiological components')
324324
num_components = traits.Int(6, usedefault=True) # 6 for BOLD, 4 for ASL
325325
use_regress_poly = traits.Bool(True, usedefault=True,
326-
desc=('use polynomial regression '
326+
desc=('use polynomial regression '
327327
'pre-component extraction'))
328328
regress_poly_degree = traits.Range(low=1, default=1, usedefault=True,
329329
desc='the degree polynomial to use')
330-
header = traits.Str(desc=('the desired header for the output tsv file (one '
330+
header = traits.Str(desc=('the desired header for the output tsv file (one '
331331
'column). If undefined, will default to '
332332
'"CompCor"'))
333333

@@ -350,7 +350,7 @@ class CompCor(BaseInterface):
350350
>>> ccinterface.inputs.num_components = 1
351351
>>> ccinterface.inputs.use_regress_poly = True
352352
>>> ccinterface.inputs.regress_poly_degree = 2
353-
353+
354354
"""
355355
input_spec = CompCorInputSpec
356356
output_spec = CompCorOutputSpec
@@ -473,7 +473,7 @@ class TCompCor(CompCor):
473473
>>> ccinterface.inputs.use_regress_poly = True
474474
>>> ccinterface.inputs.regress_poly_degree = 2
475475
>>> ccinterface.inputs.percentile_threshold = .03
476-
476+
477477
"""
478478

479479
input_spec = TCompCorInputSpec
@@ -829,16 +829,16 @@ def regress_poly(degree, data, remove_mean=True, axis=-1):
829829

830830
def combine_mask_files(mask_files, mask_method=None, mask_index=None):
831831
"""Combines input mask files into a single nibabel image
832-
832+
833833
A helper function for CompCor
834-
834+
835835
mask_files: a list
836836
one or more binary mask files
837837
mask_method: enum ('union', 'intersect', 'none')
838838
determines how to combine masks
839839
mask_index: an integer
840840
determines which file to return (mutually exclusive with mask_method)
841-
841+
842842
returns: a list of nibabel images
843843
"""
844844

@@ -879,16 +879,16 @@ def combine_mask_files(mask_files, mask_method=None, mask_index=None):
879879

880880
def compute_noise_components(imgseries, mask_images, degree, num_components):
881881
"""Compute the noise components from the imgseries for each mask
882-
882+
883883
imgseries: a nibabel img
884884
mask_images: a list of nibabel images
885885
degree: order of polynomial used to remove trends from the timeseries
886886
num_components: number of noise components to return
887-
887+
888888
returns:
889-
890-
components: a numpy array
891-
889+
890+
components: a numpy array
891+
892892
"""
893893
components = None
894894
for img in mask_images:

nipype/interfaces/afni/preprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,7 @@ class QwarpPlusMinusOutputSpec(TraitedSpec):
24172417

24182418

24192419
class QwarpPlusMinus(CommandLine):
2420-
"""A version of 3dQwarp for performing field susceptibility correction
2420+
"""A version of 3dQwarp for performing field susceptibility correction
24212421
using two images with opposing phase encoding directions.
24222422
24232423
For complete details, see the `3dQwarp Documentation.
@@ -2434,7 +2434,7 @@ class QwarpPlusMinus(CommandLine):
24342434
>>> qwarp.cmdline # doctest: +ALLOW_UNICODE
24352435
'3dQwarp -prefix Qwarp.nii.gz -plusminus -base sub-01_dir-RL_epi.nii.gz -nopadWARP -source sub-01_dir-LR_epi.nii.gz'
24362436
>>> res = warp.run() # doctest: +SKIP
2437-
2437+
24382438
"""
24392439
_cmd = '3dQwarp -prefix Qwarp.nii.gz -plusminus'
24402440
input_spec = QwarpPlusMinusInputSpec

nipype/interfaces/afni/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ class FWHMx(AFNICommandBase):
695695
_cmd = '3dFWHMx'
696696
input_spec = FWHMxInputSpec
697697
output_spec = FWHMxOutputSpec
698-
698+
699699
references_ = [{'entry': BibTeX('@article{CoxReynoldsTaylor2016,'
700700
'author={R.W. Cox, R.C. Reynolds, and P.A. Taylor},'
701701
'title={AFNI and clustering: false positive rates redux},'

nipype/interfaces/fsl/tests/test_auto_Eddy.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ def test_Eddy_inputs():
8888
def test_Eddy_outputs():
8989
output_map = dict(out_corrected=dict(),
9090
out_movement_rms=dict(),
91-
out_outlier_map=dict(),
92-
out_outlier_n_sd_map=dict(),
93-
out_outlier_n_sqr_sd_map=dict(),
9491
out_outlier_report=dict(),
9592
out_parameter=dict(),
9693
out_restricted_movement_rms=dict(),

nipype/interfaces/fsl/tests/test_auto_TOPUP.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ def test_TOPUP_inputs():
5454
name_source=['in_file'],
5555
name_template='%s_field',
5656
),
57-
out_warp_prefix=dict(argstr='--dfout=%s',
58-
hash_files=False,
59-
usedefault=True,
60-
),
6157
out_jac_prefix=dict(argstr='--jacout=%s',
6258
hash_files=False,
6359
usedefault=True,
@@ -68,6 +64,10 @@ def test_TOPUP_inputs():
6864
name_source=['in_file'],
6965
name_template='%s_topup.log',
7066
),
67+
out_warp_prefix=dict(argstr='--dfout=%s',
68+
hash_files=False,
69+
usedefault=True,
70+
),
7171
output_type=dict(),
7272
readout_times=dict(mandatory=True,
7373
requires=['encoding_direction'],
@@ -104,10 +104,10 @@ def test_TOPUP_outputs():
104104
out_enc_file=dict(),
105105
out_field=dict(),
106106
out_fieldcoef=dict(),
107+
out_jacs=dict(),
107108
out_logfile=dict(),
108109
out_movpar=dict(),
109110
out_warps=dict(),
110-
out_jacs=dict(),
111111
)
112112
outputs = TOPUP.output_spec()
113113

nipype/interfaces/fsl/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class RobustFOVInputSpec(FSLCommandInputSpec):
7373
brainsize = traits.Int(desc=('size of brain in z-dimension (default '
7474
'170mm/150mm)'),
7575
argstr='-b %d')
76-
out_transform = File(desc=("Transformation matrix in_file to out_roi "
76+
out_transform = File(desc=("Transformation matrix in_file to out_roi "
7777
"output name"),
7878
argstr="-m %s",
7979
name_source=['in_file'], hash_files=False,
@@ -83,17 +83,17 @@ class RobustFOVInputSpec(FSLCommandInputSpec):
8383
class RobustFOVOutputSpec(TraitedSpec):
8484
out_roi = File(exists=True, desc="ROI volume output name")
8585
out_transform = File(exists=True,
86-
desc=("Transformation matrix in_file to out_roi "
86+
desc=("Transformation matrix in_file to out_roi "
8787
"output name"))
8888

8989

9090
class RobustFOV(FSLCommand):
9191
"""Automatically crops an image removing lower head and neck.
92-
93-
Interface is stable 5.0.0 to 5.0.9, but default brainsize changed from
92+
93+
Interface is stable 5.0.0 to 5.0.9, but default brainsize changed from
9494
150mm to 170mm.
9595
"""
96-
96+
9797
_cmd = 'robustfov'
9898
input_spec = RobustFOVInputSpec
9999
output_spec = RobustFOVOutputSpec

0 commit comments

Comments
 (0)