Skip to content

Commit 48b2c25

Browse files
committed
PEP8 and imports
1 parent ec4f633 commit 48b2c25

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ class RandomiseInputSpec(FSLCommandInputSpec):
14101410
mask = File(exists=True, desc='mask image', argstr='-m %s')
14111411
x_block_labels = File(exists=True, desc='exchangeability block labels file', argstr='-e %s')
14121412
demean = traits.Bool(desc='demean data temporally before model fitting', argstr='-D')
1413-
one_sample_group_mean = traits.Bool(desc='perform 1-sample group-mean test instead of generic permutation test',
1413+
one_sample_group_mean = traits.Bool(desc='perform 1-sample group-mean test instead of generic permutation test',
14141414
argstr='-l')
14151415
show_total_perms = traits.Bool(desc='print out how many unique permutations would be generated and exit',
14161416
argstr='-q')
@@ -1449,18 +1449,19 @@ class RandomiseOutputSpec(TraitedSpec):
14491449
File(exists=True),
14501450
desc='f contrast raw statistic')
14511451
t_p_files = traits.List(
1452-
File(exists=True),
1452+
File(exists=True),
14531453
desc='f contrast uncorrected p values files')
14541454
f_p_files = traits.List(
14551455
File(exists=True),
14561456
desc='f contrast uncorrected p values files')
14571457
t_corrected_p_files = traits.List(
1458-
File(exists=True),
1458+
File(exists=True),
14591459
desc='t contrast FWE (Family-wise error) corrected p values files')
14601460
f_corrected_p_files = traits.List(
14611461
File(exists=True),
14621462
desc='f contrast FWE (Family-wise error) corrected p values files')
14631463

1464+
14641465
class Randomise(FSLCommand):
14651466
"""XXX UNSTABLE DO NOT USE
14661467
@@ -1486,35 +1487,34 @@ class Randomise(FSLCommand):
14861487

14871488
def _list_outputs(self):
14881489
outputs = self.output_spec().get()
1489-
import glob
1490-
outputs['tstat_files'] = glob.glob(os.path.join(
1490+
outputs['tstat_files'] = glob(os.path.join(
14911491
os.getcwd(),
1492-
'%s_tstat*.nii'%self.inputs.base_name))
1493-
outputs['fstat_files'] = glob.glob(os.path.join(
1492+
'%s_tstat*.nii' % self.inputs.base_name))
1493+
outputs['fstat_files'] = glob(os.path.join(
14941494
os.getcwd(),
1495-
'%s_fstat*.nii'%self.inputs.base_name))
1495+
'%s_fstat*.nii' % self.inputs.base_name))
14961496
prefix = False
14971497
if self.inputs.tfce or self.inputs.tfce2D:
1498-
prefix='tfce'
1498+
prefix = 'tfce'
14991499
elif self.inputs.vox_p_values:
1500-
prefix='vox'
1500+
prefix = 'vox'
15011501
elif self.inputs.c_thresh or self.inputs.f_c_thresh:
1502-
prefix='clustere'
1502+
prefix = 'clustere'
15031503
elif self.inputs.cm_thresh or self.inputs.f_cm_thresh:
1504-
prefix='clusterm'
1504+
prefix = 'clusterm'
15051505
if prefix:
1506-
outputs['t_p_files'] = glob.glob(os.path.join(
1506+
outputs['t_p_files'] = glob(os.path.join(
15071507
os.getcwd(),
1508-
'%s_%s_p_tstat*.nii'%(self.inputs.base_name,prefix) ))
1509-
outputs['t_corrected_p_files'] = glob.glob(os.path.join(
1508+
'%s_%s_p_tstat*.nii' % (self.inputs.base_name, prefix)))
1509+
outputs['t_corrected_p_files'] = glob(os.path.join(
15101510
os.getcwd(),
1511-
'%s_%s_corrp_tstat*.nii'%(self.inputs.base_name,prefix)))
1511+
'%s_%s_corrp_tstat*.nii' % (self.inputs.base_name, prefix)))
15121512

1513-
outputs['f_p_files'] = glob.glob(os.path.join(
1513+
outputs['f_p_files'] = glob(os.path.join(
15141514
os.getcwd(),
1515-
'%s_%s_p_fstat*.nii'%(self.inputs.base_name,prefix)))
1516-
outputs['f_corrected_p_files'] = glob.glob(os.path.join(
1515+
'%s_%s_p_fstat*.nii' % (self.inputs.base_name, prefix)))
1516+
outputs['f_corrected_p_files'] = glob(os.path.join(
15171517
os.getcwd(),
1518-
'%s_%s_corrp_fstat*.nii'%(self.inputs.base_name,prefix)))
1518+
'%s_%s_corrp_fstat*.nii' % (self.inputs.base_name, prefix)))
15191519

15201520
return outputs

0 commit comments

Comments
 (0)