question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues with activation disappearing during source localization

See original GitHub issue

We are attempting to run source localization on our MEG data set, via jupyter notebook.

We get as far as:

subjects_dir = data_path + '/subjects'
brain = stc.plot(surface='inflated', hemi='lh', subjects_dir=subjects_dir)
brain.set_data_time_index(350)
brain.scale_data_colormap(fmin=8, fmid=12, fmax=15, transparent=True)
brain.show_view('lateral')

brain.save_image('dspm.jpg')
from IPython.display import Image
Image(filename='dspm.jpg', width=600)

Every time we run this, the output window pops up, shows the activation on the brain, then the activation disappears and the window crashes.

We tried to save the image as well, and the activation is not present on the image (it’s just the template brain).

Thank you for any help!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jasmainakcommented, Oct 5, 2016

Did you try using time_viewer=True ?

0reactions
larsonercommented, Nov 18, 2016

Doing just Image(filename='dspm.jpg', width=600) without assigning it (like img = Image(filename='dspm.jpg', width=600)) is probably causing it to be immediately garbage-collected and thus closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

EEG Source Imaging: A Practical Review of the Analysis Steps
The electroencephalogram (EEG) is one of the oldest technologies to measure neuronal activity of the human brain.
Read more >
Review on solving the inverse problem in EEG source analysis
In this primer, we give a review of the inverse problem for EEG source localization. This is intended for the researchers new in...
Read more >
Tutorials/SourceEstimation - Brainstorm
Brainstorm features a simple localization approach that adjusts the parameters of a single current dipole fitted to the sensor data at each ...
Read more >
Unmixing Oscillatory Brain Activity by EEG Source ... - Hindawi
In this study, we elaborate on the investigations into source-based signal decomposition of EEG. Using source localization, the electrical brain signal is ...
Read more >
“Hit the missing stimulus”. A simultaneous EEG-fMRI study to ...
In order to solve the inverse problem of ERP source localization, the fMRI activation spots were used to constrain the number and spatial ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found