eit_results_list
- class nrv.eit.results.eit_results_list(dt: float | None = 0.001, t_sim: float | None = None, results: list[eit_forward_results] | eit_forward_results | str = None, include_rec: bool = False)[source]
Container for multiple EIT forward simulation results, enabling batch analysis, comparison, and post-processing.
This class extends eit_forward_results to handle a list of EIT results, providing unified access to temporal, electrode, frequency, and protocol axes across all simulations. It supports adding results from files, objects, or lists, and offers methods for filtering, slicing, and statistical analysis.
- Parameters:
dt (float, optional) – Time step for resampling all results (default: 0.001).
t_sim (float or None, optional) – Total simulation time. If None, inferred from first result.
results (list of eit_forward_results, eit_forward_results, or str, optional) – Initial results to add (can be a list, single object, or filename).
include_rec (bool, optional) – If True, include analytical nerve recordings in the container.
Notes
Results can be added from files, objects, or lists, and are automatically resampled to a common time axis.
Provides batch post-processing and statistical analysis tools for EIT simulations.
CAP detection and analysis methods are extended to handle multiple results.
Useful for comparing different simulation conditions, protocols, or geometries.
Examples
>>> res_list = eit_results_list(dt=0.001) >>> res_list.add_results([res1, res2, res3]) >>> mean_v = res_list.mean(which="v_eit") >>> cap_times = res_list.get_cap_i_t(thr=0.1) >>> error = res_list.error(which="v_eit", i_res_ref=0)
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. |
|
|
|
|
|
Overwrite to impose i_res=None |
|
|
|
Return the temporal steps of caps of each results |
|
|
|
|
|
|
|
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] |
|
|
|
|
|
|
|
|