diff --git a/mne/report/report.py b/mne/report/report.py index 87a14359ba3..9eddb4b33d3 100644 --- a/mne/report/report.py +++ b/mne/report/report.py @@ -4498,7 +4498,6 @@ def _add_bem( title, section, tags, - section, replace, ): """Render mri+bem (only PNG).""" diff --git a/test.ipynb b/test.ipynb index 96420a505c9..3d528b0da89 100644 --- a/test.ipynb +++ b/test.ipynb @@ -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", @@ -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", @@ -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": [ - "" - ] - }, - "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)" ] }, { @@ -184,15 +156,6 @@ " fwd[\"src\"]._subject" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "info" - ] - }, { "cell_type": "code", "execution_count": 17, @@ -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" }, @@ -311,7 +267,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.4" + "version": "3.12.6" } }, "nbformat": 4,