emodelrunner.synapses.glusynapse

GluSynapse class.

Classes

GluSynapseCustom(sim, icell, synapse, ...[, ...])

Attach a synapse to the simulation.

class emodelrunner.synapses.glusynapse.GluSynapseCustom(sim, icell, synapse, section, seed, rng_settings_mode, synconf_dict, start=None, interval=None, number=None, noise=None)[source]

Bases: SynapseMixin

Attach a synapse to the simulation.

seed

random number generator seed number

Type:

int

rng_settins_mode

mode of the random number generator Can be “Random123” or “Compatibility”

Type:

str

section

cell location where the synapse is attached to

Type:

neuron section

hsynapse

Glusynapse instantion in simulator

Type:

neuron GluSynapse

delay

synapse delay

Type:

float

weight

synapse weight

Type:

float

pre_mtype

ID (but not gid) of the presynaptic cell

Type:

int

start

force synapse to start firing at given value when using NetStim

Type:

int/None

interval

force synapse to fire at given interval when using NetStim

Type:

int/None

number

force synapse to fire N times when using NetStim

Type:

int/None

noise

force synapse to have given noise when using NetStim

Type:

int/None

set_local_params(fit_params, extra_params, c_pre=0.0, c_post=0.0)[source]

Set local parameters of given synapse.

Parameters:
  • fit_params (dict) – glusynapse parameters from fitting to get threshold values

  • extra_params (dict) – contains synapse location and synapse extra parameters

  • c_pre (float) – calcium peak during a single EPSP

  • c_post (float) – calcium peak during a single bAP

setup_synapses(params)[source]

Set local parameters of given synapse from params dict.

Parameters:

params (dict) –

contains

  • fit_params: glusynapse parameters from fitting to get threshold values

  • syn_extra_params: synapse location and synapse extra parameters

  • c_pre: calcium peak during a single EPSP

  • c_post: calcium peak during a single bAP

  • postgid: ID of the postsynaptic cell

  • invivo: whether to put synapse in ‘in vivo’ conditions