Skip to content

Commit

Permalink
fix section
Browse files Browse the repository at this point in the history
  • Loading branch information
vferat committed Feb 10, 2025
1 parent dd59dfe commit 175a622
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 64 deletions.
1 change: 0 additions & 1 deletion mne/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -4498,7 +4498,6 @@ def _add_bem(
title,
section,
tags,
section,
replace,
):
"""Render mri+bem (only PNG)."""
Expand Down
82 changes: 19 additions & 63 deletions test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,9 @@
"cells": [
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Dataset testing version 0.152 out of date, latest version is 0.156\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Downloading file 'mne-testing-data-0.156.tar.gz' from 'https://codeload.github.com/mne-tools/mne-testing-data/tar.gz/0.156' to 'C:\\Users\\victor.ferat\\mne_data'.\n",
"0.00B [00:00, ?B/s] \n",
"Untarring contents of 'C:\\Users\\victor.ferat\\mne_data\\mne-testing-data-0.156.tar.gz' to 'C:\\Users\\victor.ferat\\mne_data'\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Download complete in 05m25s (1046.5 MB)\n"
]
}
],
"outputs": [],
"source": [
"# Authors: The MNE-Python contributors.\n",
"# License: BSD-3-Clause\n",
Expand Down Expand Up @@ -97,14 +73,14 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Reading forward solution from C:\\Users\\victor.ferat\\mne_data\\MNE-testing-data\\MEG\\sample\\sample_audvis_trunc-meg-eeg-oct-6-fwd.fif...\n",
"Reading forward solution from C:\\Users\\ferat\\mne_data\\MNE-testing-data\\MEG\\sample\\sample_audvis_trunc-meg-eeg-oct-6-fwd.fif...\n",
" Reading a source space...\n",
" Computing patch statistics...\n",
" Patch information added...\n",
Expand All @@ -129,39 +105,35 @@
"import mne\n",
"\n",
"fwd = mne.read_forward_solution(fwd_fname)\n",
"if fwd['coord_frame'] == 'head'\n",
"src = fwd[\"src\"]\n",
"src_"
"if fwd['coord_frame'] == 'head':\n",
" src = fwd[\"src\"]\n",
" src_"
]
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Using outer_skin.surf for head surface.\n",
"Getting helmet for system 306m\n",
"Channel types::\tgrad: 203, mag: 102, eeg: 59\n",
"Projecting sensors to the head surface\n"
"Using default location ~/mne_data for sample...\n"
]
},
{
"data": {
"text/plain": [
"<mne.viz.backends._pyvista.PyVistaFigure at 0x25d167f2420>"
]
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
"name": "stderr",
"output_type": "stream",
"text": [
"Downloading file 'MNE-sample-data-processed.tar.gz' from 'https://osf.io/86qa2/download?version=6' to 'C:\\Users\\ferat\\mne_data'.\n",
" 33%|############5 | 544M/1.65G [00:26<00:54, 20.2MB/s]"
]
}
],
"source": [
"mne.viz.plot_alignment(subject=None, trans=fwd[\"mri_head_t\"], info=fwd[\"info\"], src=fwd[\"src\"], eeg=dict(original=0.2, projected=0.8))"
"SUBJECT_DIR = Path(mne.datasets.sample.data_path()) / \"subjects\"\n",
"mne.viz.plot_alignment(subject=None, trans=fwd[\"mri_head_t\"], info=fwd[\"info\"], src=fwd[\"src\"], eeg=dict(original=0.2, projected=0.8), subjects_dir=SUBJECT_DIR)"
]
},
{
Expand All @@ -184,15 +156,6 @@
" fwd[\"src\"]._subject"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"info"
]
},
{
"cell_type": "code",
"execution_count": 17,
Expand Down Expand Up @@ -286,18 +249,11 @@
"stc = mne.read_source_estimate(stc_fname)\n",
"stc"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "mne_dev",
"display_name": "mne-dev",
"language": "python",
"name": "python3"
},
Expand All @@ -311,7 +267,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
"version": "3.12.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 175a622

Please sign in to comment.