model of DCN pyramidal neuron
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
532 B

from .stochastic_terminal import StochasticTerminal
from .psd import PSD
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)