def __init__(self, data={}, populations=[], connections=[]): """ Constructor of the Network class, either copies the given data object or initializes the "populations" and "connections" with the given elements. :param data: another Network dictionary from which entries should be copied. :param populations: array of population descriptors. :param connections: array of connection descriptors. """ utils.init_key(self, data, "populations", populations) utils.init_key(self, data, "connections", connections)
def __init__(self, data={}, populations=[], connections=[]): """ Constructor of the Network class, either copies the given data object or initializes the "populations" and "connections" with the given elements. :param data: another Network dictionary from which entries should be copied. :param populations: array of population descriptors. :param connections: array of connection descriptors. """ utils.init_key(self, data, "populations", populations) utils.init_key(self, data, "connections", connections)
def __init__(self, data={}, count=1, _type=const.TYPE_IF_COND_EXP, params={}, record=[]): """ Constructor of a neuron population instance. :param data: dictionary the data may be copied from. :param count: Number of neurons in the population :param _type: Type of the neuron :param record: Variables to be recorded :param params: Neuron population parameters """ utils.init_key(self, data, "count", count, int) utils.init_key(self, data, "type", _type) utils.init_key(self, data, "params", params) utils.init_key(self, data, "record", record) self._canonicalize() self._validate()
def __init__(self, data={}, count=1, _type=const.TYPE_IF_COND_EXP, params={}, record=[]): """ Constructor of a neuron population instance. :param data: dictionary the data may be copied from. :param count: Number of neurons in the population :param _type: Type of the neuron :param record: Variables to be recorded :param params: Neuron population parameters """ utils.init_key(self, data, "count", count, int) utils.init_key(self, data, "type", _type) utils.init_key(self, data, "params", params) utils.init_key(self, data, "record", record) self._canonicalize() self._validate()