allensdk.internal.model.glif.preprocess_neuron module¶
-
exception
allensdk.internal.model.glif.preprocess_neuron.
MissingSpikeException
[source]¶ Bases:
Exception
-
allensdk.internal.model.glif.preprocess_neuron.
estimate_dv_cutoff
(voltage_list, dt, start_t, end_t)[source]¶
-
allensdk.internal.model.glif.preprocess_neuron.
find_first_spike_voltage
(voltage, dt, ssq=False, MAKE_PLOT=False, SHOW_PLOT=False, BLOCK=False, dv_cutoff=20.0, thresh_frac=0.05)[source]¶ calculate voltage at threshold of first spike Parameters ———- voltage: numpy array
voltage trace- dt: float
- sampling time step
- ssq: Boolean
- whether there is or is not a subrathreshold short square pulse (note that if thes
- MAKE_PLOT: Boolean
- specifies whether or not a plot should be made
- SHOW_PLOT: Boolean
- specifies if a visualization should be made
- BLOCK: Boolean
- if a plot is made this specifies weather to stop the code until the plot is closed
- dv_cutoff: float
- specifies cut off of the derivative of the voltage
- thresh_frac: float
- variable that goes into feature extractor
Returns: - :float
voltage of threshold of first spike