-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ENH: sEEG and ECoG sensor sizes are too large by default, should be configurable #12472
Comments
Both points sound good to me. FWIW I don't think (2) will actually be too bad since:
Feel free to jump right to (2) if you want, but (1) could be a separate PR if you want an easier one to start :) |
I made the (1) change already so happy to send a PR for that, but you can assign me to (2) if you want! |
@alexrockhill including you here if you have any thoughts so I don't break anything. :) |
Regarding part (2) of making configurable sensor sizes, I have a question. I have code working on my fork that includes |
Other people might have opinions but one option could be to add a section to EDIT: Or you could just add it naturally in the |
They're nested a bit deeper and
Yes if it fits naturally and shows something cool in an existing tutorial or example please add it there. For example perhaps this section: https://mne.tools/stable/auto_tutorials/clinical/30_ecog.html#plot-gamma-power-on-cortical-sensors Maybe you could show how size could be used instead of or in addition to colors. |
+1, that seems like a good place to demo this! |
Well shoot, I did do the grep command but apparently not deep enough, thanks @larsoner ! And @alexrockhill and @drammock thanks for the other suggestions as well. Agree that that looks like a good spot! |
If you want to pair code for an hour or so and put together a PR to port over the changes you already have working locally and plan future changes, let me know, happy to help |
Describe the new feature or enhancement
The mne.viz.Brain functionality has improved a lot lately, and I have a request to make it even better. The current size of the sensors when you use
brain.add_sensors()
to an ECoG or sEEG visualization is quite a bit bigger than the actual sensors are in reality, which I think actually makes it difficult to appreciate where they are in space and makes them overlap in a way that is not aesthetically pleasing. I have two suggestions, one really easy, and one maybe more complex.brain.add_sensors()
that would allow for adjusting the electrode size on an individual basis instead of the whole montage. This can be a nice way of showing visually the size of different effects on each electrode (for example, make the electrode bigger if it's response is larger).Describe your proposed implementation
For 1, I propose to change the default size in
defaults.py
* -- fordefaults['coreg']['ecog_scale']
and['seeg_scale']
I suggest2e-3
instead of5e-3
. Typically ECoG electrodes might be anywhere from 1-2.5 mm in diameter, and sEEG electrodes closer to 0.8-1mm. The spacing between contacts can vary between a few millimeters to a centimeter, so the scale of5e-3
(5mm) often will make them overlap for a denser montage. I've already made this change in my own fork.For 2, I would add something to
add_sensors()
, but I want to make sure it wouldn't break anything else, so I'm open to alternatives.Picture attached of what the new (smaller) size looks like:
Describe possible alternatives
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: