-
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
API: simulation module #6119
Comments
Closing as dup of conda/conda#8187 |
Sorry wrong link, meant #5924 |
Ahh I thought #5924 was meant to cover all of these, but looking closer I guess not. Reopening |
Here is an example of a possible simulation script: Note: we suppose StcSimulator to be the subclass of SourceEstimate and thus it could be treated as an stc. @ngayraud you created your own Simulator class? can you share the code pls to discuss. |
Will do ASAP
Le mar. 9 avr. 2019 à 10:56, Maksymenko Kostiantyn <notifications@github.com>
a écrit :
… Here is an example of a possible simulation script:
https://gist.github.com/makkostya/4f783028bb1324dabb45388f91e2cb8f
Note: we suppose StcSimulator to be the subclass of SourceEstimate and
thus it could be treated as an stc.
@ngayraud <https://github.com/ngayraud> you created your own Simulator
class? can you share the code pls to discuss.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6119 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARPD8yrfdB5-BhwB0jMaT9nFtcqekKEoks5vfFXQgaJpZM4cakZh>
.
|
Ok I am somewhat up to date with everything. Here is the API I created a while ago, which answers to mostly 2 and 3. The Simulation class saves the %basic" info on the experiment, such as, the forward model, the desired waveforms (for each dipole or for all dipoles). |
Just wanted to leave a note that the beamformer team also wants to run simulations during the code sprint. So we're interested in the API design too! |
Great. First we need to decide on #6037, @agramfort is not convinced it's the best approach. Once that's done, we can work on the API of the |
About the proposed sim = SourceSimulator(fwd)
sim.add_signal(name='signal1', location=..., waveform=...)
sim.add_signal(name='signal2', location=..., waveform=...)
sim.add_signal(name='signal3', location=..., waveform=...) |
Sounds good to me, except that it should take src not fwd in the constructor. Mapping source( time course)s to sensors is the domain of simulate_raw and should probably stay that way |
@ngayraud et al. here is the example of a naive API I wrote to do this sort of thing: https://gist.github.com/larsoner/8566361d3e011c9ce34c1d321f0f4ef1 Feel free to reuse the code (not the simulator) to test out the eventual API/implementation. The result will hopefully produce images like this: |
hello i have a question, can the simulation API be used to simulated motor imagery EEG signal (or ERD/ERS pattern ) ? |
Hi, I am interested in that too, and I think that it will be able to do
that, as long as you provide it with the right parameters. If you can model
the activity and provide the regions where it occurs, it should work.
Le mer. 24 avr. 2019 à 10:27, megazero1316 <notifications@github.com> a
écrit :
… hello i have a question, can the simulation API be used to simulated motor
imagery EEG signal (or ERD/ERS pattern ) ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6119 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEJ4H446MCZGLBQAXGU6RCDPSAKVVANCNFSM4HDKIZQQ>
.
|
Now that we have #6243 merged into master, what else do we need to implement to close this issue? From what I remember, we discussed about providing template waveforms. I can provide templates for the following evoked responses: P300, N200, combination of P300+N200, and N400. For all these waveforms, two parameters can be tuned to set the amplitude and jitter of the peak. Before I do a PR, let me know if (1) you think it's a good idea and (2) if they should be on a separate .py file, maybe named waveforms.py |
I would say priority is now to consolidate a narrative tutorial.
… |
Narrative in #6261, closing |
I create this issue to continue general discussion of a simulation module API, started in #5058.
We need to design the API which should:
simulate_raw
.cc @sdeslauriers @ikojcic @ngayraud
@agramfort can you label this issue as "simulation" for codding sprint pls.
The text was updated successfully, but these errors were encountered: