CompoundPye  0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
 All Classes Namespaces Functions Variables Pages
CompoundPye.src.Analyzer.analyzer.Analyzer Class Reference

Class to analyze data created with MotionDetectorModel. More...

Public Member Functions

def __init__
 Creates an Analyzer object. More...
 
def read_directions
 Neurons like T4 and T5 have an alignment or direction, depending on the position of those two columns from which they receive input. More...
 
def read_coords
 Each neuron is either in a column or a tangential cell. More...
 
def get_neuron_names
 Returns the labels of all neurons (you need them to access the neuron's data). More...
 
def get_neuron_statistics
 NOT USED SO FAR! Returns some statistical values (mean, std, ...) of one neuron. More...
 
def boxplot_neuron
 Create a boxplot of a neuron's statistical values. More...
 
def plot_neuron
 Plot a neuron's response (against time). More...
 
def get_sensor_names
 Returns the labels of all sensors (you need them to access a sensor's data). More...
 
def plot_sensor
 Plot a sensor's response (against time). More...
 
def plot_intensities
 Plot surroundings' intensities at a few timestamps (number of timestamps depends on the number of subplots). More...
 
def plot_intensities_ax
 Plot intensities at time-index i. More...
 

Detailed Description

Class to analyze data created with MotionDetectorModel.

Needs to be initiated with a pass to the output folder.

Constructor & Destructor Documentation

def CompoundPye.src.Analyzer.analyzer.Analyzer.__init__ (   self,
  folder 
)

Creates an Analyzer object.

Parameters
folderPath to output folder.

Member Function Documentation

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
axaxis object to plot into.
posx-coordinate at which to plot the boxplot.
nameLabel of the neuron.
cut_offTells the function to use only the upper (1-cut_off) part of the neuron's data.
plot_argsList of arguments to pass on to the plot function.
plot_kwargsDictionary 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
nameLabel of the neuron.
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_subplotsNumber of rows and columns of subplots.
subplots_argsList of arguments to be passed on to the plot functions.
subplots_kwargsDictionary of keyword arguments to be passed on to the plot functions.
labelsNOT USED SO FAR.
def CompoundPye.src.Analyzer.analyzer.Analyzer.plot_intensities_ax (   self,
  ax,
  i,
  imshow_kwargs = {} 
)

Plot intensities at time-index i.

Parameters
axAxis object to plot into.
iIndex (t=i*dt).
imshow_kwargsDictionary 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
axAxis object to plot into.
nameLabel of the neuron.
plot_argsList of arguments to pass on to the plot function.
plot_kwargsDictionary of keyword arguments to be passed on to the plot function.
norm_factorDivide 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
axAxis object to plot into.
nameLabel of the sensor.
plot_kwargsDictionary of keyword arguments to be passed on to the plot function.
norm_factorDivide 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: