NeuralEnsemble / PyNN

A Python package for simulator-independent specification of neuronal network models.
Other
275 stars 125 forks source link

Add "composed" models allowing multiple post-synaptic receptor types #771

Closed apdavison closed 1 year ago

apdavison commented 1 year ago

This corresponds to the "multisynapse" models in NEST.

Note that this part of the API is optional for backends. This PR includes the implementation for NEURON, NEST, Brian 2.

Example:

celltype = sim.PointNeuron(
                sim.AdExp(tau_m=10.0, v_rest=-60.0),
                AMPA=sim.AlphaPSR(tau_syn=1.0, e_syn=0.0),
                NMDA=sim.AlphaPSR(tau_syn=20.0, e_syn=0.0),
                GABAA=sim.AlphaPSR(tau_syn=1.5, e_syn=-70.0),
                GABAB=sim.AlphaPSR(tau_syn=15.0, e_syn=-90.0))
coveralls commented 1 year ago

Coverage Status

Coverage: 70.889% (+1.2%) from 69.727% when pulling 6631ce48432d385f3f65f7d40e6bf744982ac7d3 on apdavison:multisynapse3 into 2fc6b508a9f250871b752d97fe4aee2ab01802ab on NeuralEnsemble:master.