nrv.eit.utils

Description

eit util: utils function and class specific to eit sub-package.

eit utils mostly gather tools to compute conductivity/admitivity values, handle numpy arrays and plot eit_simulation results.

Classes

Figure_elec(n_e[, fig, spec, ij_offset, ...])

Helper class organizing one subplot per electrode around a central nerve view.

Functions

get_samples_index(results, n_pts[, alpha, ...])

Selects sample indices from nerve simulation results to achieve adaptative sampling along the arc length of the signal.

sample_nerve_results(results, n_pts[, ...])

Samples specific keys from nerve simulation results at selected time points.

plot_array(ax, x, arr[, axis])

Plot a one-dimensional coordinate against an array of arbitrary dimension.

gen_idx_arange(idx, n[, add_0])

Generate per-segment counters from boundary indices.

thr_window(X[, alpha])

gen_fig_elec(n_e[, fig, spec, ij_offset, ...])

Create a figure layout with one axis per electrode and one central axis.

plot_all_elec(res_list[, t, axs, i_res, ...])

Plot one signal trace per electrode on an existing or generated layout.

add_nerve_plot(axs, data[, add_elec, ...])

Draw a nerve cross-section and optionally the electrode geometry.

scale_axs(axs[, i_ax, unit_x, unit_y, ...])

Harmonize y-limits across electrode axes and add scale bars.

plot_nerve_nor(fname, l_elec, x_rec[, fasc_ID])

Plot node-of-Ranvier alignment relative to one electrode window.

fill_between_all_elec(axs, res_list_1, ...)

Fill the area between two electrode-wise signals.

color_elec(axs, data, n_e, list_e, **kwgs)

Highlight selected cuff electrodes on the nerve plot.