@@ -40,13 +40,13 @@ def spm_hrf(RT, P=None, fMRI_T=16):
40
40
% p - parameters of the response function (two gamma
41
41
% functions)
42
42
% defaults (seconds)
43
- % p(0) - delay of response (relative to onset) 6
44
- % p(1) - delay of undershoot (relative to onset) 16
45
- % p(2) - dispersion of response 1
46
- % p(3) - dispersion of undershoot 1
47
- % p(4) - ratio of response to undershoot 6
48
- % p(5) - onset (seconds) 0
49
- % p(6) - length of kernel (seconds) 32
43
+ % p(0) - delay of response (relative to onset) 6
44
+ % p(1) - delay of undershoot (relative to onset) 16
45
+ % p(2) - dispersion of response 1
46
+ % p(3) - dispersion of undershoot 1
47
+ % p(4) - ratio of response to undershoot 6
48
+ % p(5) - onset (seconds) 0
49
+ % p(6) - length of kernel (seconds) 32
50
50
%
51
51
% hrf - hemodynamic response function
52
52
% p - parameters of the response function
@@ -135,7 +135,7 @@ def scale_timings(timelist, input_units, output_units, time_repetition):
135
135
136
136
137
137
def bids_gen_info (
138
- bids_event_files , condition_column = "" , amplitude_column = None , time_repetition = False ,
138
+ bids_event_files , condition_column = "" , amplitude_column = None , time_repetition = False
139
139
):
140
140
"""
141
141
Generate a subject_info structure from a list of BIDS .tsv event files.
@@ -471,8 +471,7 @@ def _generate_standard_design(
471
471
return sessinfo
472
472
473
473
def _generate_design (self , infolist = None ):
474
- """Generate design specification for a typical fmri paradigm
475
- """
474
+ """Generate design specification for a typical fmri paradigm"""
476
475
realignment_parameters = []
477
476
if isdefined (self .inputs .realignment_parameters ):
478
477
for parfile in self .inputs .realignment_parameters :
@@ -517,8 +516,7 @@ def _generate_design(self, infolist=None):
517
516
)
518
517
519
518
def _run_interface (self , runtime ):
520
- """
521
- """
519
+ """"""
522
520
self ._sessioninfo = None
523
521
self ._generate_design ()
524
522
return runtime
@@ -739,7 +737,7 @@ class SpecifySparseModelOutputSpec(SpecifyModelOutputSpec):
739
737
740
738
741
739
class SpecifySparseModel (SpecifyModel ):
742
- """ Specify a sparse model that is compatible with SPM/FSL designers [1]_.
740
+ """Specify a sparse model that is compatible with SPM/FSL designers [1]_.
743
741
744
742
Examples
745
743
--------
@@ -770,8 +768,7 @@ class SpecifySparseModel(SpecifyModel):
770
768
output_spec = SpecifySparseModelOutputSpec
771
769
772
770
def _gen_regress (self , i_onsets , i_durations , i_amplitudes , nscans ):
773
- """Generates a regressor for a sparse/clustered-sparse acquisition
774
- """
771
+ """Generates a regressor for a sparse/clustered-sparse acquisition"""
775
772
bplot = False
776
773
if isdefined (self .inputs .save_plot ) and self .inputs .save_plot :
777
774
bplot = True
@@ -901,8 +898,7 @@ def _gen_regress(self, i_onsets, i_durations, i_amplitudes, nscans):
901
898
return reg
902
899
903
900
def _cond_to_regress (self , info , nscans ):
904
- """Converts condition information to full regressors
905
- """
901
+ """Converts condition information to full regressors"""
906
902
reg = []
907
903
regnames = []
908
904
for i , cond in enumerate (info .conditions ):
0 commit comments