Skip to content

Commit 0ae9f22

Browse files
committed
FIX: PEP8 - E131 continuation line unaligned for hanging indent
1 parent 84500db commit 0ae9f22

File tree

7 files changed

+115
-116
lines changed

7 files changed

+115
-116
lines changed

examples/dmri_preprocessing.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@
155155
wf = pe.Workflow(name="dMRI_Preprocessing")
156156
wf.base_dir = os.path.abspath('preprocessing_dmri_tutorial')
157157
wf.connect([
158-
(infosource, datasource, [('subject_id', 'subject_id')])
159-
,(datasource, prep, [('dwi', 'inputnode.in_file'),
158+
(infosource, datasource, [('subject_id', 'subject_id')]),
159+
(datasource, prep, [('dwi', 'inputnode.in_file'),
160160
('dwi_rev', 'inputnode.alt_file'),
161161
('bvals', 'inputnode.in_bval'),
162-
('bvecs', 'inputnode.in_bvec')])
163-
,(prep, bias, [('outputnode.out_file', 'inputnode.in_file'),
164-
('outputnode.out_mask', 'inputnode.in_mask')])
165-
,(datasource, bias, [('bvals', 'inputnode.in_bval')])
162+
('bvecs', 'inputnode.in_bvec')]),
163+
(prep, bias, [('outputnode.out_file', 'inputnode.in_file'),
164+
('outputnode.out_mask', 'inputnode.in_mask')]),
165+
(datasource, bias, [('bvals', 'inputnode.in_bval')])
166166
])
167167

168168

nipype/interfaces/cmtk/parcellation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,15 +531,15 @@ class ParcellateOutputSpec(TraitedSpec):
531531
white_matter_mask_file = File(exists=True, desc='White matter mask file')
532532
cc_unknown_file = File(
533533
desc='Image file with regions labelled as unknown cortical structures',
534-
exists=True)
534+
exists=True)
535535
ribbon_file = File(desc='Image file detailing the cortical ribbon',
536536
exists=True)
537537
aseg_file = File(
538538
desc='Automated segmentation file converted from Freesurfer "subjects" directory',
539-
exists=True)
539+
exists=True)
540540
roi_file_in_structural_space = File(
541541
desc='ROI image resliced to the dimensions of the original structural image',
542-
exists=True)
542+
exists=True)
543543
dilated_roi_file_in_structural_space = File(
544544
desc='dilated ROI image resliced to the dimensions of the original structural image')
545545

nipype/interfaces/fsl/preprocess.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,11 +1099,11 @@ class SUSANInputSpec(FSLCommandInputSpec):
10991099
desc='whether to use a local median filter in the cases where single-point noise is detected')
11001100
usans = traits.List(
11011101
traits.Tuple(File(exists=True), traits.Float), maxlen=2,
1102-
argstr='', position=6, default=[], usedefault=True,
1103-
desc='determines whether the smoothing area (USAN) is to be '
1104-
'found from secondary images (0, 1 or 2). A negative '
1105-
'value for any brightness threshold will auto-set the '
1106-
'threshold at 10% of the robust range')
1102+
argstr='', position=6, default=[], usedefault=True,
1103+
desc='determines whether the smoothing area (USAN) is to be '
1104+
'found from secondary images (0, 1 or 2). A negative '
1105+
'value for any brightness threshold will auto-set the '
1106+
'threshold at 10% of the robust range')
11071107
out_file = File(argstr='%s', position=-1, genfile=True,
11081108
desc='output file name', hash_files=False)
11091109

nipype/interfaces/spm/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class EstimateContrastInputSpec(SPMCommandInputSpec):
275275
session list is None or not provided, all sessions are used. For F
276276
contrasts, the condition list should contain previously defined
277277
T-contrasts.""",
278-
mandatory=True)
278+
mandatory=True)
279279
beta_images = InputMultiPath(File(exists=True),
280280
desc='Parameter estimates of the design matrix',
281281
copyfile=False,

nipype/workflows/dmri/connectivity/group_connectivity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ def create_merge_network_results_by_group_workflow(group_list, group_id, data_di
190190
l2source.inputs.template = '%s/%s'
191191
l2source.inputs.field_template = dict(
192192
CFFfiles=op.join(output_dir, '%s/cff/*/connectome.cff'),
193-
CSVmatrices=op.join(output_dir, '%s/cmatrices_csv/*/*.csv'), CSVnodal=op.join(output_dir, '%s/nxcsv/*/*nodal*.csv'),
194-
CSVglobal=op.join(output_dir, '%s/nxcsv/*/*global*.csv'), CSVfibers=op.join(output_dir, '%s/fiber_csv/*/*fibers*.csv'))
193+
CSVmatrices=op.join(output_dir, '%s/cmatrices_csv/*/*.csv'), CSVnodal=op.join(output_dir, '%s/nxcsv/*/*nodal*.csv'),
194+
CSVglobal=op.join(output_dir, '%s/nxcsv/*/*global*.csv'), CSVfibers=op.join(output_dir, '%s/fiber_csv/*/*fibers*.csv'))
195195
l2source.inputs.sort_filelist = True
196196

197197
l2inputnode = pe.Node(interface=util.IdentityInterface(fields=['CFFfiles',
@@ -237,7 +237,7 @@ def create_merge_network_results_by_group_workflow(group_list, group_id, data_di
237237

238238
concat_csv_interface = Function(
239239
input_names=["in_files"], output_names=["out_name"],
240-
function=concatcsv)
240+
function=concatcsv)
241241

242242
concat_node_csvs = pe.Node(
243243
interface=concat_csv_interface, name='concat_node_csvs')

nipype/workflows/dmri/dipy/denoise.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def nlmeans_pipeline(name='Denoise',
3737
wf = pe.Workflow(name=name)
3838
wf.connect([
3939
(inputnode, nmask, [('in_file', 'in_file'),
40-
('in_mask', 'in_mask')])
41-
,(inputnode, nlmeans, [('in_file', 'in_file'),
42-
('in_mask', 'in_mask')])
43-
,(nmask, nlmeans, [('out_file', 'noise_mask')])
44-
,(nlmeans, outputnode, [('out_file', 'out_file')])
40+
('in_mask', 'in_mask')]),
41+
(inputnode, nlmeans, [('in_file', 'in_file'),
42+
('in_mask', 'in_mask')]),
43+
(nmask, nlmeans, [('out_file', 'noise_mask')]),
44+
(nlmeans, outputnode, [('out_file', 'out_file')])
4545
])
4646
return wf
4747

0 commit comments

Comments
 (0)