Class to analyze data created with MotionDetectorModel.
More...
Class to analyze data created with MotionDetectorModel.
Needs to be initiated with a pass to the output folder.
def CompoundPye.src.Analyzer.analyzer.Analyzer.__init__ |
( |
|
self, |
|
|
|
folder |
|
) |
| |
Creates an Analyzer object.
- Parameters
-
folder | Path to output folder. |
def CompoundPye.src.Analyzer.analyzer.Analyzer.boxplot_neuron |
( |
|
self, |
|
|
|
ax, |
|
|
|
pos, |
|
|
|
name, |
|
|
|
cut_off = 0.15 , |
|
|
|
plot_args = [] , |
|
|
|
plot_kwargs = {} |
|
) |
| |
Create a boxplot of a neuron's statistical values.
- Parameters
-
ax | axis object to plot into. |
pos | x-coordinate at which to plot the boxplot. |
name | Label of the neuron. |
cut_off | Tells the function to use only the upper (1-cut_off) part of the neuron's data. |
plot_args | List of arguments to pass on to the plot function. |
plot_kwargs | Dictionary of keyword arguments to be passed on to the plot function. |
def CompoundPye.src.Analyzer.analyzer.Analyzer.get_neuron_names |
( |
|
self | ) |
|
Returns the labels of all neurons (you need them to access the neuron's data).
def CompoundPye.src.Analyzer.analyzer.Analyzer.get_neuron_statistics |
( |
|
self, |
|
|
|
name, |
|
|
|
boundaries = [0.0 |
|
) |
| |
NOT USED SO FAR! Returns some statistical values (mean, std, ...) of one neuron.
- Parameters
-
def CompoundPye.src.Analyzer.analyzer.Analyzer.get_sensor_names |
( |
|
self | ) |
|
Returns the labels of all sensors (you need them to access a sensor's data).
def CompoundPye.src.Analyzer.analyzer.Analyzer.plot_intensities |
( |
|
self, |
|
|
|
n_subplots = [1 , |
|
|
|
subplots_args = [] , |
|
|
|
subplots_kwargs = {'sharex':True , |
|
|
|
sharey |
|
) |
| |
Plot surroundings' intensities at a few timestamps (number of timestamps depends on the number of subplots).
- Parameters
-
n_subplots | Number of rows and columns of subplots. |
subplots_args | List of arguments to be passed on to the plot functions. |
subplots_kwargs | Dictionary of keyword arguments to be passed on to the plot functions. |
labels | NOT USED SO FAR. |
def CompoundPye.src.Analyzer.analyzer.Analyzer.plot_intensities_ax |
( |
|
self, |
|
|
|
ax, |
|
|
|
i, |
|
|
|
imshow_kwargs = {} |
|
) |
| |
Plot intensities at time-index i.
- Parameters
-
ax | Axis object to plot into. |
i | Index (t=i*dt). |
imshow_kwargs | Dictionary of keyword arguments to be passed on to the imshow function call. |
def CompoundPye.src.Analyzer.analyzer.Analyzer.plot_neuron |
( |
|
self, |
|
|
|
ax, |
|
|
|
name, |
|
|
|
plot_args = [] , |
|
|
|
plot_kwargs = {} , |
|
|
|
norm_factor = 1.0 |
|
) |
| |
Plot a neuron's response (against time).
- Parameters
-
ax | Axis object to plot into. |
name | Label of the neuron. |
plot_args | List of arguments to pass on to the plot function. |
plot_kwargs | Dictionary of keyword arguments to be passed on to the plot function. |
norm_factor | Divide data by this factor. |
def CompoundPye.src.Analyzer.analyzer.Analyzer.plot_sensor |
( |
|
self, |
|
|
|
ax, |
|
|
|
name, |
|
|
|
plot_args = [] , |
|
|
|
plot_kwargs = {} |
|
) |
| |
Plot a sensor's response (against time).
- Parameters
-
ax | Axis object to plot into. |
name | Label of the sensor. |
plot_kwargs | Dictionary of keyword arguments to be passed on to the plot function. |
norm_factor | Divide data by this factor. |
def CompoundPye.src.Analyzer.analyzer.Analyzer.read_coords |
( |
|
self, |
|
|
|
folder = '' |
|
) |
| |
Each neuron is either in a column or a tangential cell.
If it is a columnar neuron, it is assigned the coordinate of the photoreceptor. Coordinates of all stored neurons get read via this function.
def CompoundPye.src.Analyzer.analyzer.Analyzer.read_directions |
( |
|
self, |
|
|
|
folder = '' |
|
) |
| |
Neurons like T4 and T5 have an alignment or direction, depending on the position of those two columns from which they receive input.
These directions are stored in directions.pkl, and read by this function.
The documentation for this class was generated from the following file:
- CompoundPye/src/Analyzer/analyzer.py