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)