eit_forward_results
- class nrv.eit.results.eit_forward_results(nerve_res: nerve_results | str | dict | None = None, fem_res: dict | None = None, data: str | dict | None = None)[source]
Stores and manages the results of an Electrical Impedance Tomography (EIT) forward simulation.
This class combines outputs from both the nerve simulation and the finite element (FEM) EIT simulation, providing convenient access to time series, electrode measurements, protocol information, and post-processing tools.
- Parameters:
Notes
This class is designed for efficient post-processing and visualization of EIT simulation results.
It supports multi-frequency and multi-protocol EIT simulations.
Failed or invalid time steps are automatically detected and can be filtered out.
Provides tools for CAP detection and analysis.
Examples
>>> res = eit_forward_results(nerve_res=nerve_sim, fem_res=fem_sim) # create results >>> dv = res.dv_eit(i_e=0) # Access voltage shift of the first electrode >>> cap_mask = res.get_cap_mask(thr=0.1) >>> res.plot_recruited_fibers(ax)
Attributes
Returns True if the EIT simulation was run over multiple frequencies |
|
Returns True if the injections protocole contains more than one patern. |
|
number of electrodes |
|
number of frequency point |
|
number of frequency point |
|
number of temporal point |
|
return the shape of v_eit |
|
Methods
|
|
|
|
|
|
|
|
|
Create a new dictionary with keys from iterable and values set to value. |
|
Return the value for key if key is in the dictionary, else default. |
|
|
|
|
|
|
|
|
|
|
|
Return a tuple containing the |
|
|
|
|
|
|
|
|
|
If the key is not found, return the default if given; otherwise, raise a KeyError. |
Remove and return a (key, value) pair as a 2-tuple. |
|
|
Insert key with a value of default if key is not in the dictionary. |
|
|
|
If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k] |
|
|
|
|
|
|
|
|