def get_synapse_type_parameters(self, machine_time_step): # pylint: disable=arguments-differ e_decay, _ = get_exponential_decay_and_init( self._data[TAU_SYN_E], machine_time_step) i_decay, _ = get_exponential_decay_and_init( self._data[TAU_SYN_I], machine_time_step) # pre-multiply constants (convert to millisecond) dt_divided_by_tau_syn_E_sqr = self._data[TAU_SYN_E].apply_operation( lambda x: (float(machine_time_step) / 1000.0) / (x * x)) dt_divided_by_tau_syn_I_sqr = self._data[TAU_SYN_I].apply_operation( lambda x: (float(machine_time_step) / 1000.0) / (x * x)) return [ # linear term buffer NeuronParameter(self._data[EXC_RESPONSE], _COMB_EXP_TYPES.RESPONSE_EXC.data_type), # exponential term buffer NeuronParameter(self._data[EXC_EXP_RESPONSE], _COMB_EXP_TYPES.RESPONSE_EXC_EXP.data_type), # evolution parameters NeuronParameter(dt_divided_by_tau_syn_E_sqr, _COMB_EXP_TYPES.CONST_EXC.data_type), NeuronParameter(e_decay, _COMB_EXP_TYPES.DECAY_EXC.data_type), NeuronParameter(self._data[INH_RESPONSE], _COMB_EXP_TYPES.RESPONSE_INH.data_type), NeuronParameter(self._data[INH_EXP_RESPONSE], _COMB_EXP_TYPES.RESPONSE_INH_EXP.data_type), NeuronParameter(dt_divided_by_tau_syn_I_sqr, _COMB_EXP_TYPES.CONST_INH.data_type), NeuronParameter(i_decay, _COMB_EXP_TYPES.DECAY_INH.data_type), ]
def get_synapse_type_parameters(self, machine_time_step): # pylint: disable=arguments-differ e_decay, e_init = get_exponential_decay_and_init( self._data[TAU_SYN_E], machine_time_step) e_decay2, e_init2 = get_exponential_decay_and_init( self._data[TAU_SYN_E2], machine_time_step) i_decay, i_init = get_exponential_decay_and_init( self._data[TAU_SYN_I], machine_time_step) return [ NeuronParameter(e_decay, _DUAL_EXP_TYPES.E_DECAY.data_type), NeuronParameter(e_init, _DUAL_EXP_TYPES.E_INIT.data_type), NeuronParameter(e_decay2, _DUAL_EXP_TYPES.E2_DECAY.data_type), NeuronParameter(e_init2, _DUAL_EXP_TYPES.E2_INIT.data_type), NeuronParameter(i_decay, _DUAL_EXP_TYPES.I_DECAY.data_type), NeuronParameter(i_init, _DUAL_EXP_TYPES.I_INIT.data_type), NeuronParameter( self._data[INITIAL_INPUT_EXC], _DUAL_EXP_TYPES.INITIAL_EXC.data_type), NeuronParameter( self._data[INITIAL_INPUT_EXC2], _DUAL_EXP_TYPES.INITIAL_EXC2.data_type), NeuronParameter( self._data[INITIAL_INPUT_INH], _DUAL_EXP_TYPES.INITIAL_INH.data_type) ]
def get_synapse_type_parameters(self): e_decay, e_init = get_exponential_decay_and_init( self._tau_syn_E, self._machine_time_step) e_decay2, e_init2 = get_exponential_decay_and_init( self._tau_syn_E2, self._machine_time_step) i_decay, i_init = get_exponential_decay_and_init( self._tau_syn_I, self._machine_time_step) return [ NeuronParameter(e_decay, DataType.UINT32), NeuronParameter(e_init, DataType.UINT32), NeuronParameter(e_decay2, DataType.UINT32), NeuronParameter(e_init2, DataType.UINT32), NeuronParameter(i_decay, DataType.UINT32), NeuronParameter(i_init, DataType.UINT32) ]
def get_synapse_type_parameters(self): e_decay, e_init = get_exponential_decay_and_init( self._tau_syn_E, self._machine_time_step) e_decay2, e_init2 = get_exponential_decay_and_init( self._tau_syn_E2, self._machine_time_step) i_decay, i_init = get_exponential_decay_and_init( self._tau_syn_I, self._machine_time_step) return [ NeuronParameter(e_decay, DataType.UINT32), NeuronParameter(e_init, DataType.UINT32), NeuronParameter(e_decay2, DataType.UINT32), NeuronParameter(e_init2, DataType.UINT32), NeuronParameter(i_decay, DataType.UINT32), NeuronParameter(i_init, DataType.UINT32) ]
def get_synapse_type_parameters(self, machine_time_step): e_decay, e_init = get_exponential_decay_and_init( self._tau_syn_E, machine_time_step) e_decay2, e_init2 = get_exponential_decay_and_init( self._tau_syn_E2, machine_time_step) i_decay, i_init = get_exponential_decay_and_init( self._tau_syn_I, machine_time_step) return [ NeuronParameter(e_decay, _DUAL_EXP_TYPES.E_DECAY.data_type), NeuronParameter(e_init, _DUAL_EXP_TYPES.E_INIT.data_type), NeuronParameter(e_decay2, _DUAL_EXP_TYPES.E2_DECAY.data_type), NeuronParameter(e_init2, _DUAL_EXP_TYPES.E2_INIT.data_type), NeuronParameter(i_decay, _DUAL_EXP_TYPES.I_DECAY.data_type), NeuronParameter(i_init, _DUAL_EXP_TYPES.I_INIT.data_type), NeuronParameter(self._initial_input_exc, _DUAL_EXP_TYPES.INITIAL_EXC.data_type), NeuronParameter(self._initial_input_exc2, _DUAL_EXP_TYPES.INITIAL_EXC2.data_type), NeuronParameter(self._initial_input_inh, _DUAL_EXP_TYPES.INITIAL_INH.data_type) ]