odynn.models.hhsimple module¶
-
class
odynn.models.hhsimple.
HodgHuxSimple
(init_p, tensors=False, dt=0.1)[source]¶ Bases:
odynn.models.model.BioNeuron
Attributes: init_state
ndarray, Initial state vector
num
int, Number of neurons being modeled in this object
- parameter_names
Methods
calculate
(i_inj)Simulate the neuron with input current i_inj and return the state vectors get_random
()Return a dictionnary with the same keys as default_params and random values parallelize
(n)Add a dimension of size n in the initial parameters and initial state plot_output
(ts, i_inj, states[, y_states, …])Plot voltage and ion concentrations, potentially compared to a target model plot_results
(ts, i_inj_values, results[, …])Function for plotting detailed results of some experiment step
(X, i_inj)Integrate and update state variable (voltage and possibly others) after one time step -
default_init_state
= array([-60., 0., 1.])¶
-
default_params
= {'C_m': 1.0, 'E_K': 30.0, 'E_L': -60.0, 'a__mdp': -30.0, 'a__scale': 20.0, 'a__tau': 500.0, 'b__mdp': -5.0, 'b__scale': -3.0, 'b__tau': 30.0, 'g_K': 0.5, 'g_L': 0.1}¶
-
static
get_random
()[source]¶ Return a dictionnary with the same keys as default_params and random values