Skip to content

Commit

Permalink
Indent
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Oct 27, 2023
1 parent e5c7a7b commit bc489e6
Showing 1 changed file with 98 additions and 98 deletions.
196 changes: 98 additions & 98 deletions mne/html_templates/repr/info.html.jinja
Original file line number Diff line number Diff line change
@@ -1,101 +1,101 @@
<details{{ "" if collapsed else " open"}}>
<summary><strong>{{sections[0]}}</strong></summary>
<table class="table table-hover table-striped table-sm table-responsive small">
<tr>
<th>Measurement date</th>
{% if meas_date is not none %}
<td>{{ meas_date }}</td>
{% else %}
<td>Unknown</td>
{% endif %}
</tr>
<tr>
<th>Experimenter</th>
{% if experimenter is not none %}
<td>{{ experimenter }}</td>
{% else %}
<td>Unknown</td>
{% endif %}
</tr>
<tr>
<th>Participant</th>
{% if subject_info is defined and subject_info is not none %}
<details{{ "" if collapsed else " open" }}>
<summary><strong>{{sections[0]}}</strong></summary>
<table class="table table-hover table-striped table-sm table-responsive small">
<tr>
<th>Measurement date</th>
{% if meas_date is not none %}
<td>{{ meas_date }}</td>
{% else %}
<td>Unknown</td>
{% endif %}
</tr>
<tr>
<th>Experimenter</th>
{% if experimenter is not none %}
<td>{{ experimenter }}</td>
{% else %}
<td>Unknown</td>
{% endif %}
</tr>
<tr>
<th>Participant</th>
{% if subject_info is defined and subject_info is not none %}
{% if 'his_id' in subject_info.keys() %}
<td>{{ subject_info['his_id'] }}</td>
{% endif %}
{% else %}
<td>Unknown</td>
{% endif %}
</tr>
</table>
</details>
<details{{ "" if collapsed else " open"}}>
<summary><strong>{{sections[1]}}<strong></summary>
<table class="table table-hover table-striped table-sm table-responsive small">
<tr>
<th>Digitized points</th>
{% if dig is not none %}
<td>{{ dig|length }} points</td>
{% else %}
<td>Not available</td>
{% endif %}
</tr>
<tr>
<th>Good channels</th>
<td>{{ good_channels }}</td>
</tr>
<tr>
<th>Bad channels</th>
<td>{{ bad_channels }}</td>
</tr>
<tr>
<th>EOG channels</th>
<td>{{ eog }}</td>
</tr>
<tr>
<th>ECG channels</th>
<td>{{ ecg }}</td>
</tr>
</table>
</details>
<details{{ "" if collapsed else " open"}}>
<summary><strong>{{sections[2]}}</strong></summary>
<table class="table table-hover table-striped table-sm table-responsive small">
{% if sfreq is not none %}
<tr>
<th>Sampling frequency</th>
<td>{{ '%0.2f'|format(sfreq) }} Hz</td>
</tr>
{% endif %}
{% if highpass is not none %}
<tr>
<th>Highpass</th>
<td>{{ '%0.2f'|format(highpass) }} Hz</td>
</tr>
{% endif %}
{% if lowpass is not none %}
<tr>
<th>Lowpass</th>
<td>{{ '%0.2f'|format(lowpass) }} Hz</td>
</tr>
{% endif %}
{% if projs is not none %}
<tr>
<th>Projections</th>
<td>{{ projs|join('<br/>') | safe }}</td>
</tr>
{% endif %}
{% if filenames %}
<tr>
<th>Filenames</th>
<td>{{ filenames|join('<br>') }}</td>
</tr>
{% endif %}
{% if duration %}
<tr>
<th>Duration</th>
<td>{{ duration }} (HH:MM:SS)</td>
</tr>
{% endif %}
</table>
</details>
{% else %}
<td>Unknown</td>
{% endif %}
</tr>
</table>
</details>
<details{{ "" if collapsed else " open" }}>
<summary><strong>{{sections[1]}}<strong></summary>
<table class="table table-hover table-striped table-sm table-responsive small">
<tr>
<th>Digitized points</th>
{% if dig is not none %}
<td>{{ dig|length }} points</td>
{% else %}
<td>Not available</td>
{% endif %}
</tr>
<tr>
<th>Good channels</th>
<td>{{ good_channels }}</td>
</tr>
<tr>
<th>Bad channels</th>
<td>{{ bad_channels }}</td>
</tr>
<tr>
<th>EOG channels</th>
<td>{{ eog }}</td>
</tr>
<tr>
<th>ECG channels</th>
<td>{{ ecg }}</td>
</tr>
</table>
</details>
<details{{ "" if collapsed else " open" }}>
<summary><strong>{{sections[2]}}</strong></summary>
<table class="table table-hover table-striped table-sm table-responsive small">
{% if sfreq is not none %}
<tr>
<th>Sampling frequency</th>
<td>{{ '%0.2f'|format(sfreq) }} Hz</td>
</tr>
{% endif %}
{% if highpass is not none %}
<tr>
<th>Highpass</th>
<td>{{ '%0.2f'|format(highpass) }} Hz</td>
</tr>
{% endif %}
{% if lowpass is not none %}
<tr>
<th>Lowpass</th>
<td>{{ '%0.2f'|format(lowpass) }} Hz</td>
</tr>
{% endif %}
{% if projs is not none %}
<tr>
<th>Projections</th>
<td>{{ projs|join('<br />') | safe }}</td>
</tr>
{% endif %}
{% if filenames %}
<tr>
<th>Filenames</th>
<td>{{ filenames|join('<br>') }}</td>
</tr>
{% endif %}
{% if duration %}
<tr>
<th>Duration</th>
<td>{{ duration }} (HH:MM:SS)</td>
</tr>
{% endif %}
</table>
</details>

0 comments on commit bc489e6

Please sign in to comment.