axon
- class nrv.nmod.axon(y=0, z=0, d=1, L=100, dt=0.001, Nseg_per_sec=0, freq=100, freq_min=0, mesh_shape='plateau_sigmoid', alpha_max=0.3, d_lambda=0.1, v_init=None, T=None, ID=0, threshold=-40, **kwargs)[source]
A generic object to describe an axonal fiber (soma and interconnection are not taken into account, all axons are independant from others).
Note
axon
is an abstract class so it cannot be used directly. From the user’s point of view, only the child classesmyelinated
andunmyelinated
should be used.All axons are assumed to be along the x-axis, as Neuron would do when creatnig a basic longitudinal geometry.
- Parameters:
y (float) – y-axis coordinate of the axon (um)
z (float) – z-axis coordinate of the axon (um)
d (float) – axon diameter (um)
L (float) – axon length (um)
dt (float) – simulation time stem for Neuron (ms), by default 1us
Nseg_per_sec (float) – number of segment per section in Neuron. If set to 0, the number of segment per section is calculated with the d-lambda rule
freq (float) – frequency of the d-lambda rule (Hz), by default 100Hz
freq_min (float) – minimum frequency for the d-lambda rule when meshing is irregular, 0 for regular meshing
v_init (float) – initial value for the membrane voltage (mV), specify None for automatic model choice of v_init
T (float) – temperature (C), specify None for automatic model choice of temperature
ID (int) – axon ID, by default set to 0
threshold (int) – membrane voltage threshold for spike detection (mV), by default -40mV
Warning
do not create more than one axon at a time for one process, to prevent from parameters overlaps in Neuron
Methods
|
initialisation of the axon, |
attach an extracellular recorder to the axon |
|
attach a extracellular context of simulation for an axon |
|
|
Change the stimulus of the ID_elec electrods |
Check if an extracellular context is attached to the instance |
|
get electrodes footprints on each axon segment |
|
Generic method returning all the atributes of an NRV_class instance |
|
Check if an intracellular context is attached to the instance |
|
|
Load all axon properties from a dictionary or a json file |
|
|
|
|
Check if a recording context is attached to the instance |
|
|
Return axon as dictionary and eventually save it as json file WARNING to use BEFORE stimulation, (for post simulation savings use save_axon_results_as_json on results dictionary |
|
|
|
Generic method to set any attribute of |
Shuts down the recorder locally |
|
|
Simulates the axon using neuron framework |
call the neuron topology function to plot the current topology on prompt |