Ejemplo n.º 1
0
    def __init__(self, n_neurons, machine_time_step, primary, v_init=-70.0):
        AbstractNeuronModel.__init__(self)
        self._n_neurons = n_neurons
        self._machine_time_step = machine_time_step

        self._primary = utility_calls.convert_param_to_numpy(
            primary, n_neurons)

        self._v_init = utility_calls.convert_param_to_numpy(v_init, n_neurons)
Ejemplo n.º 2
0
 def __init__(self, n_neurons, machine_time_step, a, b, c, d, v_init,
              u_init, i_offset):
     AbstractNeuronModel.__init__(self)
     self._n_neurons = n_neurons
     self._machine_time_step = machine_time_step
     self._a = utility_calls.convert_param_to_numpy(a, n_neurons)
     self._b = utility_calls.convert_param_to_numpy(b, n_neurons)
     self._c = utility_calls.convert_param_to_numpy(c, n_neurons)
     self._d = utility_calls.convert_param_to_numpy(d, n_neurons)
     self._v_init = utility_calls.convert_param_to_numpy(v_init, n_neurons)
     self._u_init = utility_calls.convert_param_to_numpy(u_init, n_neurons)
     self._i_offset = utility_calls.convert_param_to_numpy(
         i_offset, n_neurons)
Ejemplo n.º 3
0
    def __init__(self, n_neurons, machine_time_step, v_init, v_rest, tau_m, cm,
                 i_offset):
        AbstractNeuronModel.__init__(self)
        self._n_neurons = n_neurons
        self._machine_time_step = machine_time_step
        self._v_init = utility_calls.convert_param_to_numpy(v_init, n_neurons)
        self._v_rest = utility_calls.convert_param_to_numpy(v_rest, n_neurons)
        self._tau_m = utility_calls.convert_param_to_numpy(tau_m, n_neurons)
        self._cm = utility_calls.convert_param_to_numpy(cm, n_neurons)
        self._i_offset = utility_calls.convert_param_to_numpy(
            i_offset, n_neurons)

        if v_init is None:
            self._v_init = v_rest
    def __init__(self, n_neurons, machine_time_step, v_init, v_rest, tau_m, cm,
                 i_offset):
        AbstractNeuronModel.__init__(self)
        self._n_neurons = n_neurons
        self._machine_time_step = machine_time_step
        self._v_init = utility_calls.convert_param_to_numpy(v_init, n_neurons)
        self._v_rest = utility_calls.convert_param_to_numpy(v_rest, n_neurons)
        self._tau_m = utility_calls.convert_param_to_numpy(tau_m, n_neurons)
        self._cm = utility_calls.convert_param_to_numpy(cm, n_neurons)
        self._i_offset = utility_calls.convert_param_to_numpy(
            i_offset, n_neurons)

        if v_init is None:
            self._v_init = v_rest
Ejemplo n.º 5
0
    def __init__(
            self, n_neurons,

            # TODO: update the parameters
            i_offset, my_neuron_parameter,

            # TODO: update the state variables if required
            v_init=-70.0):
        AbstractNeuronModel.__init__(self)
        self._n_neurons = n_neurons

        # TODO: Store any parameters
        self._i_offset = utility_calls.convert_param_to_numpy(
            i_offset, n_neurons)
        self._my_neuron_parameter = utility_calls.convert_param_to_numpy(
            my_neuron_parameter, n_neurons)

        # TODO: Store any state variables
        self._v_init = utility_calls.convert_param_to_numpy(v_init, n_neurons)
Ejemplo n.º 6
0
    def __init__(self, n_neurons, v_init, v_rest, tau_m, cm, i_offset):
        AbstractNeuronModel.__init__(self)
        AbstractContainsUnits.__init__(self)

        self._units = {
            'v_init': 'mV',
            'v_rest': 'mV',
            'tau_m': 'ms',
            'cm': 'nF',
            'i_offset': 'nA'
        }

        self._n_neurons = n_neurons
        self._v_init = utility_calls.convert_param_to_numpy(v_init, n_neurons)
        self._v_rest = utility_calls.convert_param_to_numpy(v_rest, n_neurons)
        self._tau_m = utility_calls.convert_param_to_numpy(tau_m, n_neurons)
        self._cm = utility_calls.convert_param_to_numpy(cm, n_neurons)
        self._i_offset = utility_calls.convert_param_to_numpy(
            i_offset, n_neurons)

        if v_init is None:
            self._v_init = self._v_rest
Ejemplo n.º 7
0
    def __init__(self, n_neurons, a, b, c, d, v_init, u_init, i_offset):
        AbstractNeuronModel.__init__(self)
        AbstractContainsUnits.__init__(self)

        self._units = {
            'a': "ms",
            'b': "ms",
            'c': "mV",
            'd': "mV/ms",
            'v_init': "mV",
            'u_init': "mV/ms",
            'i_offset': "nA"
        }

        self._n_neurons = n_neurons
        self._a = utility_calls.convert_param_to_numpy(a, n_neurons)
        self._b = utility_calls.convert_param_to_numpy(b, n_neurons)
        self._c = utility_calls.convert_param_to_numpy(c, n_neurons)
        self._d = utility_calls.convert_param_to_numpy(d, n_neurons)
        self._v_init = utility_calls.convert_param_to_numpy(v_init, n_neurons)
        self._u_init = utility_calls.convert_param_to_numpy(u_init, n_neurons)
        self._i_offset = utility_calls.convert_param_to_numpy(
            i_offset, n_neurons)