MesoNet: custom update functions
network_operation for the extra state updates. need the scheduling order written down, not just the function body
code/API pointer: NetworkOperation / network_operation. The notebook uses this to explore updates outside the normal voltage-equation path. It does not supply a final function name or fixed scheduling configuration for the project wrapper.
prototype: bipolar spike encoding with custom neuron-state updates. Alternatives in the notes include paired excitatory/inhibitory units, event-specific weight changes, custom differential equations and auxiliary state variables.
tradeoff: a Python-side override can make an experiment easier to express while reducing the simulator's optimization opportunities. Keep the model's mathematical rule separate from the mechanism used to schedule it.
review questions: does the operation execute before or after threshold/reset/synapse updates? Is the same quantity being advanced twice by both the solver and a callback? Measure overhead with the custom operation enabled and disabled on an otherwise identical run.
References saved in this journal section
- https://brian2.readthedocs.io/en/latest/resources/tutorials/1-intro-to-brian-neurons.html
- https://brian2.readthedocs.io/en/2.7.1/user/equations.html
- https://brian2.readthedocs.io/en/stable/reference/brian2.core.operations.network_operation.html
- https://brian2.readthedocs.io/en/2.7.1/user/running.html

