Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mne_sandbox/html_templates/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Jinja2 HTML templates."""

from ._templates import repr_templates_env
15 changes: 15 additions & 0 deletions mne_sandbox/html_templates/_templates.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import jinja2

autoescape = jinja2.select_autoescape(
default=True,
default_for_string=True
)

# For _html_repr_()
repr_templates_env = jinja2.Environment(
loader=jinja2.PackageLoader(
package_name='mne_sandbox.html_templates',
package_path='repr'
),
autoescape=autoescape
)
30 changes: 30 additions & 0 deletions mne_sandbox/html_templates/repr/clustertestresult.html.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<table class="table table-hover table-striped table-sm table-responsive small">
<tr>
<th>Number of clusters</th>
<td>{{ n_clusters }}</td>
</tr>
<tr>
<th>Channel type</th>
<td>{{ ch_type }}</td>
</tr>
<tr>
<th>Number of observations</th>
<td>{{ n_observations }}</td>
</tr>
<tr>
<th>Number of permutations</th>
<td>{{ n_permutations }}</td>
</tr>
<tr>
<th>Cluster-forming threshold</th>
<td>{{ '%0.6f' % cluster_forming_threshold|float }}</td>
</tr>
<tr>
<th>Statistical test</th>
<td>{{ test_kind }}</td>
</tr>
<tr>
<th>Tail(s) of test distribution</th>
<td>{{ tail }}</td>
</tr>
</table>
1 change: 1 addition & 0 deletions mne_sandbox/stats/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .cluster_level import group_level_cluster_test, ClusterTestResult
Loading