nerve
- class nrv.nmod.nerve(length=10000, diameter=100, Outer_D=5, ID=0, **kwargs)[source]
- A nerve in NRV is defined as:
a list of
fasciclean analytical
stimulationor aFEM_stimulationcontext
A nerve can be instrumented by adding couples of electrodes+stimulus
The extracellular context of the nerve is automatically generated from the context of its fascicles and an optional context added directly to the nerve.
See also
Customizable Attributes:
Attributes
Type
Default
Description
IDint0
Identification number of the nerve.
LfloatNone
Length of the nerve.
DfloatNone
Diameter of the nerve.
y_grav_centerfloat0
y-position of the nerve center.
z_grav_centerfloat0
z-position of the nerve center.
postproc_labelstrNone
Label of the axon postprocessing funtion, used for the buildin postproc functions.
postproc_functionfunctionNone
Axon postprocessing funtion, used for the custom postproc functions.
postproc_scriptstr|functionNone
Either postprocessing funtion or postprocessing funtion label, automatically set depending on the type
postproc_kwargsdictNone
key arguments of the postporcessing function
save_resultsboolFalse
If
True, nerve configuration and all axon simulations results are saved insave_pathdirectory.save_pathstr“”
Path of the directory where simulation results should be saved.
return_parameters_onlyboolFalse
If
True(andsave_resultsalsoTrue), only the parameters should be returned from the simulation.loaded_footprintsboolFalse
If
False, the footprints already computed are favored over new footprint computation.verboseboolFalse
Plot or not.
Note
Customizable attributes can either be set using
nerve.set_parameters()or simply by reafecting the value of the attribute.Tip
Additional simulation parameters can be changed using (
nerve.set_axons_parameters(),nerve.change_stimulus_from_electrode(), …).
Attributes
Number of axons in the nerves |
|
Number of fascicles in the nerves |
Methods
|
Instanciates an empty nerve. |
|
Add a fascicle to the list of fascicles |
attach an extracellular recorder to the axon |
|
attach a extracellular context of simulation for an axon. |
|
Change the stimulus of the ID_elec electrods |
|
Clear any I-clamp attached to the nerve |
|
|
Clear all stimulation and recording mecanism |
|
compute electrodes footprints |
|
Define a circular countour to the nerve |
|
Define ellipsoidal contour |
Set the length over the x axis of the nerve |
|
Check if an extracellular context is attached to the instance |
|
|
Define a circular countour to the nerve |
|
get parameters of axons in the nerve |
Returns the properties of the nerve contour considered as a circle (y and z center and diameter) |
|
|
Return a |
|
Returns the number of axons in a given fascicle or in all the nerve |
Generic method returning all the atributes of an NRV_class instance |
|
|
Define contour from a file |
|
Insert a IC clamp stimulation |
Check if an intracellular context is attached to the instance |
|
|
Load a fascicle configuration from a json file |
|
plot the nerve in the Y-Z plane (transverse section) |
Check if a recording context is attached to the instance |
|
|
Save a fascicle in a json file |
|
set the ID of the nerve |
|
set parameters of axons in the nerve |
|
Generic method to set any attribute of |
Shuts down the recorder locally |
|
|
Simulate the nerve with the proposed extracellular context. |