Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev testing of subcoordinate_y for stacked traces #75

Merged
merged 2 commits into from
Aug 8, 2023
Merged
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
84 changes: 68 additions & 16 deletions workflows/eeg-viewer/dev/230327_MNE_Qt_EEG_browser.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"id": "e848b88f-271f-4608-a1d3-9a76046e57b7",
"metadata": {
"tags": []
Expand All @@ -40,7 +40,17 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"id": "f64dc29b-9963-4acb-8927-e112de1a0af7",
"metadata": {},
"outputs": [],
"source": [
"mne.set_config('MNE_DATASETS_SAMPLE_PATH', '/Users/droumis/data/mne_data/')"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "ac5dac4a-c73f-4307-b083-11cea9b7f147",
"metadata": {
"tags": []
Expand All @@ -49,10 +59,10 @@
{
"data": {
"text/plain": [
"PosixPath('/Users/droumis/data/MNE-sample-data/MNE-sample-data')"
"PosixPath('/Users/droumis/data/mne_data/MNE-sample-data')"
]
},
"execution_count": 2,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -72,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 12,
"id": "d2c0b381-c224-483d-8c02-48b9f722b1f4",
"metadata": {
"tags": []
Expand All @@ -81,10 +91,10 @@
{
"data": {
"text/plain": [
"PosixPath('/Users/droumis/data/MNE-sample-data/MNE-sample-data/MEG/sample/sample_audvis_raw.fif')"
"PosixPath('/Users/droumis/data/mne_data/MNE-sample-data/MEG/sample/sample_audvis_raw.fif')"
]
},
"execution_count": 3,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -98,7 +108,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 14,
"id": "b00c6d20-9239-4102-9935-ac7a8726beb9",
"metadata": {
"tags": []
Expand All @@ -108,7 +118,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Opening raw data file /Users/droumis/data/MNE-sample-data/MNE-sample-data/MEG/sample/sample_audvis_raw.fif...\n",
"Opening raw data file /Users/droumis/data/mne_data/MNE-sample-data/MEG/sample/sample_audvis_raw.fif...\n",
" Read a total of 3 projection items:\n",
" PCA-v1 (1 x 102) idle\n",
" PCA-v2 (1 x 102) idle\n",
Expand All @@ -124,7 +134,50 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"id": "16fadf8f-ad0f-4f6a-bb7b-9624e0b288fe",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'/Users/droumis/data/mne_data/MNE-testing-data/EDF/test_edf_stim_resamp.edf'"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sample_data_raw_file = ('/Users/droumis/data/mne_data/MNE-testing-data/EDF/test_edf_stim_resamp.edf')\n",
"sample_data_raw_file"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "7ba5e861-c715-4c33-ac78-751354032b76",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Extracting EDF parameters from /Users/droumis/data/mne_data/S001R04.edf...\n",
"EDF file detected\n",
"Setting channel info structure...\n",
"Creating raw.info structure...\n"
]
}
],
"source": [
"raw = mne.io.read_raw_edf('/Users/droumis/data/mne_data/S001R04.edf')"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "3c91f539-941f-4b96-824e-0b2ac76058dc",
"metadata": {
"tags": []
Expand Down Expand Up @@ -225,7 +278,7 @@
">"
]
},
"execution_count": 5,
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -244,7 +297,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 16,
"id": "d3e794f9-47cf-4872-a267-a47296519da4",
"metadata": {
"tags": []
Expand All @@ -254,17 +307,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Using qt as 2D backend.\n",
"Using pyopengl with version 3.1.6\n"
]
},
{
"data": {
"text/plain": [
"<mne_qt_browser._pg_figure.MNEQtBrowser at 0x283315280>"
"<mne_qt_browser._pg_figure.MNEQtBrowser at 0x17e47b790>"
]
},
"execution_count": 6,
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
},
Expand All @@ -278,7 +330,7 @@
}
],
"source": [
"raw.plot(duration=10, n_channels=40) # launches GUI"
"raw.plot(duration=10, n_channels=40, clipping=None) # launches GUI"
]
},
{
Expand Down
Loading