Source code for cnmodel.synapses.synapse

from .stochastic_terminal import StochasticTerminal
from .psd import PSD


[docs]class Synapse(object): """Encapsulates a synaptic connection between two cells. Instances of this class are created by calling `Cell.connect()`. """ def __init__(self, pre_cell, pre_opts, post_cell, post_opts, type='multisite'): pre_opts['term_type'] = type post_opts['psd_type'] = type self.terminal = pre_cell.make_terminal(post_cell, **pre_opts) self.psd = post_cell.make_psd(self.terminal, **post_opts)