Source code for hippounit.capabilities.cap_ReceivesMultipleSynapses

import sciunit
from sciunit import Capability

[docs]class ReceivesMultipleSynapses(sciunit.Capability): """Indicates that the model receives one or multiple synapses"""
[docs] def run_multiple_syn(self, dend_loc, interval, number, weight): """ This function must be implemented by the model. Must return numpy arrays containing the time and voltage values (at the soma and at the synaptic location ) Parameters ---------- dend_loc : list containing the name of the section (string) and the location (float) where input is received. Eg.: ['dendrite[3]', 0.5] number: int number of synaptic input interval : float time interval between the synaptic inputs weight : float weight of the synaptic input """ raise NotImplementedError()
[docs] def run_multiple_synapse_get_vm(self, dend_loc, interval, number, weight): """ This function is called by the test and calls the run_multiple_syn() function. """ t, v, v_dend = self.run_multiple_syn(dend_loc, interval, number, weight) return t, v, v_dend