Skip to content

Commit 4dc7c11

Browse files
committed
[ENH] Some nit picks of the reports
1 parent 77ca62f commit 4dc7c11

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

fmriprep/interfaces/reports.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"""
4545

4646
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>
4949
\t\t<li>Date preprocessed: {date}</li>
5050
\t</ul>
5151
</div>
@@ -106,7 +106,7 @@ def _generate_segment(self):
106106
if recon.cmdline.startswith('echo'):
107107
freesurfer_status = 'Pre-existing directory'
108108
else:
109-
freesurfer_status = 'Run by FMRIPREP'
109+
freesurfer_status = 'Run by fMRIPrep'
110110

111111
output_spaces = [self.inputs.template if space == 'template' else space
112112
for space in self.inputs.output_spaces]
@@ -127,7 +127,7 @@ def _generate_segment(self):
127127
header = '\t\t<ul class="elem-desc">'
128128
footer = '\t\t</ul>'
129129
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')
131131
for task_id, n_runs in sorted(counts.items())]
132132
tasks = '\n'.join([header] + lines + [footer])
133133

@@ -164,13 +164,16 @@ def _generate_segment(self):
164164
stc = {True: 'Applied',
165165
False: 'Not applied',
166166
'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]
174177
if self.inputs.pe_direction is None:
175178
pedir = 'MISSING - Assuming Anterior-Posterior'
176179
else:

0 commit comments

Comments
 (0)