Skip to content

Commit 61d4350

Browse files
author
Clark
committed
reverted \ in some docstrings & tests
1 parent b81611a commit 61d4350

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

nipype/interfaces/spm/model.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,7 @@ def _make_matlab_command(self, _):
598598
else
599599
if use_topo_fdr
600600
V2R = 1/prod(FWHM(stat_map_vol.dim > 1));
601-
[uc,Pc,ue] = spm_uc_clusterFDR(cluster_extent_p_fdr_thr,df,\
602-
STAT,R,n,Z,XYZ,V2R,cluster_forming_thr);
601+
[uc,Pc,ue] = spm_uc_clusterFDR(cluster_extent_p_fdr_thr,df,STAT,R,n,Z,XYZ,V2R,cluster_forming_thr);
603602
end
604603
605604
voxel_labels = spm_clusters(XYZth);
@@ -610,10 +609,8 @@ def _make_matlab_command(self, _):
610609
611610
for i = 1:nclusters
612611
cluster_size = sum(voxel_labels==i);
613-
if cluster_size > extent_threshold && (~use_topo_fdr || \
614-
(cluster_size - uc) > -1)
615-
thresholded_XYZ = cat(2, thresholded_XYZ, \
616-
XYZth(:,voxel_labels == i));
612+
if cluster_size > extent_threshold && (~use_topo_fdr || (cluster_size - uc) > -1)
613+
thresholded_XYZ = cat(2, thresholded_XYZ, XYZth(:,voxel_labels == i));
617614
thresholded_Z = cat(2, thresholded_Z, Zth(voxel_labels == i));
618615
th_nclusters = th_nclusters + 1;
619616
end
@@ -749,8 +746,7 @@ def _make_matlab_command(self, _):
749746
voxelwise_P_uncor = (1-spm_Ncdf(cluster_forming_thr)).^n
750747
case 'T'
751748
VPs = (1 - spm_Tcdf(Zum,df(2))).^n;
752-
voxelwise_P_uncor = \
753-
(1 - spm_Tcdf(cluster_forming_thr,df(2))).^n
749+
voxelwise_P_uncor = (1 - spm_Tcdf(cluster_forming_thr,df(2))).^n
754750
case 'X'
755751
VPs = (1-spm_Xcdf(Zum,df(2))).^n;
756752
voxelwise_P_uncor = (1-spm_Xcdf(cluster_forming_thr,df(2))).^n
@@ -764,17 +760,14 @@ def _make_matlab_command(self, _):
764760
765761
V2R = 1/prod(FWHM(stat_map_vol.dim > 1));
766762
767-
clusterwise_P_RF = \
768-
spm_P_RF(1,extent_threshold*V2R,cluster_forming_thr,df,STAT,R,n)
763+
clusterwise_P_RF = spm_P_RF(1,extent_threshold*V2R,cluster_forming_thr,df,STAT,R,n)
769764
770765
[x,y,z] = ind2sub(size(stat_map_data),(1:numel(stat_map_data))');
771766
XYZ = cat(1, x', y', z');
772767
773-
[u, CPs, ue] = \
774-
spm_uc_clusterFDR(0.05,df,STAT,R,n,Z,XYZ,V2R,cluster_forming_thr);
768+
[u, CPs, ue] = spm_uc_clusterFDR(0.05,df,STAT,R,n,Z,XYZ,V2R,cluster_forming_thr);
775769
776-
clusterwise_P_FDR = \
777-
spm_P_clusterFDR(extent_threshold*V2R,df,STAT,R,n,cluster_forming_thr,CPs')
770+
clusterwise_P_FDR = spm_P_clusterFDR(extent_threshold*V2R,df,STAT,R,n,cluster_forming_thr,CPs')
778771
"""
779772
return script
780773

@@ -980,8 +973,7 @@ class PairedTTestDesign(FactorialDesign):
980973
--------
981974
982975
>>> pttest = PairedTTestDesign()
983-
>>> pttest.inputs.paired_files = [['cont1.nii','cont1a.nii'],\
984-
['cont2.nii','cont2a.nii']]
976+
>>> pttest.inputs.paired_files = [['cont1.nii','cont1a.nii'],['cont2.nii','cont2a.nii']]
985977
>>> pttest.run() # doctest: +SKIP
986978
"""
987979

0 commit comments

Comments
 (0)