44
44
"""
45
45
46
46
ABOUT_TEMPLATE = """\t <ul>
47
- \t \t <li>FMRIPREP version: {version}</li>
48
- \t \t <li>FMRIPREP command: <tt >{command}</tt ></li>
47
+ \t \t <li>FMRIPrep version: {version}</li>
48
+ \t \t <li>FMRIPrep command: <code >{command}</code ></li>
49
49
\t \t <li>Date preprocessed: {date}</li>
50
50
\t </ul>
51
51
</div>
@@ -106,7 +106,7 @@ def _generate_segment(self):
106
106
if recon .cmdline .startswith ('echo' ):
107
107
freesurfer_status = 'Pre-existing directory'
108
108
else :
109
- freesurfer_status = 'Run by FMRIPREP '
109
+ freesurfer_status = 'Run by fMRIPrep '
110
110
111
111
output_spaces = [self .inputs .template if space == 'template' else space
112
112
for space in self .inputs .output_spaces ]
@@ -127,7 +127,7 @@ def _generate_segment(self):
127
127
header = '\t \t <ul class="elem-desc">'
128
128
footer = '\t \t </ul>'
129
129
lines = ['\t \t \t <li>Task: {task_id} ({n_runs:d} run{s})</li>' .format (
130
- task_id = task_id , n_runs = n_runs , s = '' if n_runs == 1 else 's' )
130
+ task_id = task_id , n_runs = n_runs , s = '' if n_runs == 1 else 's' )
131
131
for task_id , n_runs in sorted (counts .items ())]
132
132
tasks = '\n ' .join ([header ] + lines + [footer ])
133
133
@@ -164,13 +164,16 @@ def _generate_segment(self):
164
164
stc = {True : 'Applied' ,
165
165
False : 'Not applied' ,
166
166
'TooShort' : 'Skipped (too few volumes)' }[self .inputs .slice_timing ]
167
- reg = {'FSL' : [
168
- 'FLIRT with boundary-based registration (BBR) metric - %d dof' % dof ,
169
- 'FLIRT rigid registration - 6 dof' ],
170
- 'FreeSurfer' : [
171
- 'FreeSurfer boundary-based registration (bbregister) - %d dof' % dof ,
172
- 'FreeSurfer mri_coreg - %d dof' % dof ],
173
- }[self .inputs .registration ][self .inputs .fallback ]
167
+ reg = {
168
+ 'FSL' : [
169
+ 'FSL <code>flirt</code> with boundary-based registration'
170
+ ' (BBR) metric - %d dof' % dof ,
171
+ 'FSL <code>flirt</code> rigid registration - 6 dof' ],
172
+ 'FreeSurfer' : [
173
+ 'FreeSurfer <code>bbregister</code> '
174
+ '(boundary-based registration, BBR) - %d dof' % dof ,
175
+ 'FreeSurfer <code>mri_coreg</code> - %d dof' % dof ],
176
+ }[self .inputs .registration ][self .inputs .fallback ]
174
177
if self .inputs .pe_direction is None :
175
178
pedir = 'MISSING - Assuming Anterior-Posterior'
176
179
else :
0 commit comments