Comments (14)
Hello! π Thanks for opening your first issue here! β€οΈ We will try to get back to you soon. π΄
from mne-python.
What is your mne sys_info
? It's possible this is a bug with PyQt5 and HiDPI (though it's more common on macOS than Linux)
from mne-python.
Thank you for the query; these are my two environments:
::: MacOS :::
Platform macOS-14.4.1-arm64-arm-64bit
Python 3.9.6 (default, Feb 3 2024, 15:58:27) [Clang 15.0.0 (clang-1500.3.9.4)]
Executable /Users/edwald/python_venvs/mne/bin/python3
CPU arm (8 cores)
Memory 16.0 GB
Core
ββ mne 1.6.1 (latest release)
ββ numpy 1.26.4 (OpenBLAS 0.3.23.dev with 8 threads)
ββ scipy 1.12.0
ββ matplotlib 3.8.3 (backend=module://matplotlib_inline.backend_inline)
ββ pooch 1.8.0
ββ jinja2 3.1.3
Numerical (optional)
ββ sklearn 1.4.1.post1
ββ nibabel 5.2.0
ββ nilearn 0.10.3
ββ pandas 2.2.0
ββ unavailable numba, dipy, openmeeg, cupy
Visualization (optional)
ββ pyvista 0.43.3 (OpenGL 4.1 Metal - 88 via Apple M1)
ββ pyvistaqt 0.11.0
ββ vtk 9.3.0
ββ qtpy 2.4.1 (PyQt6=6.6.1)
ββ pyqtgraph 0.13.4
ββ mne-qt-browser 0.6.2
ββ ipywidgets 8.1.2
ββ unavailable ipympl, trame_client, trame_server, trame_vtk, trame_vuetify
Ecosystem (optional)
ββ unavailable mne-bids, mne-nirs, mne-features, mne-connectivity, mne-icalabel, mne-bids-pipeline
::: Ubuntu 22.04 :::
mne.sys_info()
Platform Linux-6.5.0-25-generic-x86_64-with-glibc2.35
Python 3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0]
Executable /home/edwaldt20ni/VirtualEnvs/neweeg/bin/python
CPU x86_64 (12 cores)
Memory 62.6 GB
Core
ββ mne 1.6.1 (latest release)
ββ numpy 1.26.4 (OpenBLAS 0.3.23.dev with 12 threads)
ββ scipy 1.12.0
ββ matplotlib 3.8.3 (backend=QtAgg)
ββ pooch 1.8.1
ββ jinja2 3.1.3
Numerical (optional)
ββ sklearn 1.4.1.post1
ββ nibabel 5.2.0
ββ nilearn 0.10.3
ββ pandas 2.2.0
ββ unavailable numba, dipy, openmeeg, cupy
Visualization (optional)
ββ pyvista 0.43.3 (OpenGL 4.5 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 via llvmpipe (LLVM 15.0.7, 256 bits))
ββ pyvistaqt 0.11.0
ββ vtk 9.2.6
ββ qtpy 2.4.1 (PyQt6=6.6.1)
ββ pyqtgraph 0.13.3
ββ mne-qt-browser 0.6.1
ββ ipywidgets 8.1.2
ββ unavailable ipympl, trame_client, trame_server, trame_vtk, trame_vuetify
Ecosystem (optional)
ββ unavailable mne-bids, mne-nirs, mne-features, mne-connectivity, mne-icalabel, mne-bids-pipeline
from mne-python.
If deemed helpful, I'll find a way to reduce the data and repeat the process with a smaller set of epochs
Can you try with this snippet (will download ~1.5GB):
import mne
data_path = mne.datasets.sample.data_path(verbose=True)
stc = mne.read_source_estimate(data_path / "MEG" / "sample" / "sample_audvis-meg-eeg-lh.stc", subject="sample")
stc.plot(subjects_dir=data_path / "subjects")
For me it produces something that interacts as expected, does it work for you?
from mne-python.
Not quite:
I havenβt had opportunity to test this on the Ubuntu box, but hereβs what happens on the Mac.
I donβt know why itβs looking for an -fsaverage- file
(mne) edwald@temmi ~ % python
Python 3.9.6 (default, Feb 3 2024, 15:58:27)
[Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import mne
data_path=mne.datasets.sample.data_path(verbose=True)
Downloading file 'MNE-sample-data-processed.tar.gz' from 'https://osf.io/86qa2/download?version=6' to '/Users/edwald/mne_data'.
/Users/edwald/python_venvs/mne/lib/python3.9/site-packages/urllib3/init.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: urllib3/urllib3#3020
warnings.warn(
100%|βββββββββββββββββββββββββββββββββββββ| 1.65G/1.65G [00:00<00:00, 23.3TB/s]
Untarring contents of '/Users/edwald/mne_data/MNE-sample-data-processed.tar.gz' to '/Users/edwald/mne_data'
Download complete in 01m19s (1576.2 MB)
stc=mne.read_source_estimate(data_path / "MEG" / "sample" / "sample_audvis-meg-eeg-lh.stc", subject="sample")
stc.plot()
Traceback (most recent call last):
File "", line 1, in
File "/Users/edwald/python_venvs/mne/lib/python3.9/site-packages/mne/source_estimate.py", line 743, in plot
brain = plot_source_estimates(
File "", line 12, in plot_source_estimates
File "/Users/edwald/python_venvs/mne/lib/python3.9/site-packages/mne/viz/_3d.py", line 2398, in plot_source_estimates
subjects_dir = get_subjects_dir(subjects_dir=subjects_dir, raise_error=True)
File "/Users/edwald/python_venvs/mne/lib/python3.9/site-packages/mne/utils/config.py", line 475, in get_subjects_dir
subjects_dir = _check_fname(
File "", line 12, in _check_fname
File "/Users/edwald/python_venvs/mne/lib/python3.9/site-packages/mne/utils/check.py", line 263, in _check_fname
raise FileNotFoundError(f'{name} does not exist: "{fname}"')
FileNotFoundError: subjects_dir does not exist: "/Users/edwald/mne_data/MNE-fsaverage-data"
data_path
PosixPath('/Users/edwald/mne_data/MNE-sample-data')
from mne-python.
Argh sorry that last line in the MWE should be:
>>> stc.plot(subjects_dir=data_path / "subjects")
from mne-python.
Thank you -
the plot appears, but I can only get new dipole bubbles on the brain if I click the mouse on the extreme right edge
Ie. the V1 area and further up the edge. Then I get the bubbles on the lower edge of the brain. Any clicks further inwards on the brain do not visibly produce anything, probably because the bubble falls off the left edge of the brain plot. ( I have not rotated the plot at all).
from mne-python.
Okay I was able to replicate on my macOS machine -- can you see if being on this branch of PyVistaQt fixes things for you on mac at least?
And maybe we'll get lucky and it'll also fix things on Linux.
from mne-python.
from mne-python.
from mne-python.
You should be able to do pip install git+https://github.com/larsoner/pyvistaqt.git@pyqt6
to install my branch
from mne-python.
This WORKS! Or, at least- the dipole bubble now appears exactly where I click with the mouse.
Thank you very much for this wizardry. Brilliant!
Tomorrow I will have the opportunity to test this on Ubuntu as well, or anything else I can contribute.
from mne-python.
The code works correctly on Ubuntu as well, with your fix.
Both my own code and your example above.
Many thanks.
from mne-python.
Great to hear!
from mne-python.
Related Issues (20)
- Add SOUND and SSP-SIR algorithms HOT 3
- Cannot build docs HOT 8
- Customize website color palette HOT 5
- Inconsistent behavior between `Epochs` and `Evoked` in `get_data()` method when picking EEG channels and bads are present HOT 7
- Add option to change default channel type HOT 4
- BUG: Inconsistent Welch results by API HOT 7
- Too many (duplicate) search results in API docs HOT 3
- How to build the documentation? HOT 3
- No `on_missing` in `mne.channels.combine_channels` HOT 1
- `mne.io.read_raw_fil` crashes if bad channels are specified prior to import HOT 3
- topoplots for OPM data HOT 1
- Cannot use `evoked.animate_topomap()` on CSD data HOT 1
- OverFlowError when calling : `SourceEstimate.plot(...)` HOT 3
- `mne.Brain` fails to set renderer when blocking HOT 1
- Add option to import BrainVision files without marker types HOT 5
- BUG: Incompatibility of `sample_weight` with sklearn 1.4+ HOT 2
- BUG: Wrong output for adjacency=False
- bad colormap behavior when brain vlim sliders crossover
- Eyelink: Accept blank recording dates? HOT 3
- Release workflow HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mne-python.