lrkrol / SEREEGA

SEREEGA: Simulating Event-Related EEG Activity
64 stars 17 forks source link

Parallellize `generate_scalpdata` #14

Closed arnevdk closed 2 years ago

arnevdk commented 3 years ago

Nice simulation tool! I would like to use it, but long simulation times are holding me back a bit. Using a parallell for loop for generating epochs or components in generate_scalpdata can significantly speed up simulation.

lrkrol commented 3 years ago

Thanks for this excellent suggestion. I had not considered parallel processing before, but the switch turned out to be rather easy. The newly committed generate_scalpdata in the development branch should now make use of a parallel loop where available (additionally relying on utl_show_progress_timetocomplete and utl_show_progress_parfor to provide progress updates). Please let me know if this works for you!