ioam / topographica

A general-purpose neural simulator focusing on topographic maps.
topographica.org
BSD 3-Clause "New" or "Revised" License
53 stars 32 forks source link

Scheduling simulation wide events or callbacks #511

Closed mjabri closed 11 years ago

mjabri commented 11 years ago

I have looked at the schedule_events and schedule_command to schedule/register some sim events (and hence not do that in the analysis_fn callback, although it works). These are sheet oriented to operate on sheet. Are there any ways to schedule events through a call-back, ie when time T is met, or after duration D, call a call back? I want to add a sheet (or potentially something else).

jbednar commented 11 years ago

schedule_command does exactly what you want. It does not know anything about Sheets, and simply runs an arbitrary supplied bit of Python code, as a string, at time T.