CompoundPye  0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
 All Classes Namespaces Functions Variables Pages
CompoundPye.src.Parser.stimuli_creator Namespace Reference

Creates CompoundPye.src.Surroundings.Stimuli.stimulus.Stimulus objects with parameters entered in the GUI. More...

Functions

def get_two_dim_dict
 Create a dictionary containing names and paths to all valid two dimensional stimuli classes. More...
 
def create_single_stim
 Create a single stimulus object with given parameters. More...
 
def create_stim
 Create a MotionDetectorModel.Surroundings.Stimuli.stimulus.Stimulus object with parameters as provided in the set of parameters. More...
 

Detailed Description

Creates CompoundPye.src.Surroundings.Stimuli.stimulus.Stimulus objects with parameters entered in the GUI.

Author
Ilyas Kuhlemann ilyas.nosp@m.p.ku.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
19.01.15

Function Documentation

def CompoundPye.src.Parser.stimuli_creator.create_single_stim (   obj,
  extend,
  start,
  velocity,
  args,
  px_x,
  px_y 
)

Create a single stimulus object with given parameters.

All parameters need to/can be provided as strings.

Parameters
objString containing the name of a Stimulus class.
extendString (list/float) specifying the spatial extend of the stimulus.
startString (list/float) specifying the relative position where the stimulus starts (at the beginning of the simulation).
velocityString (list/float) specifying the relative speed of the stimulus moving across the surroundings.
argsString (list/dictionary) containing additional input parameters to the Stimulus' construnctor/__init__-function.
px_xPixel of the Surroundings on the first axis.
px_yPixel of the Surroundings on the second axis.
Returns
Stimulus object.
def CompoundPye.src.Parser.stimuli_creator.create_stim (   px_x,
  px_y,
  stim 
)

Create a MotionDetectorModel.Surroundings.Stimuli.stimulus.Stimulus object with parameters as provided in the set of parameters.

Parameters
px_xPixel of the Surroundings on the first axis.
px_yPixel of the Surroundings on the second axis.
stimDictionary containing the stimulus' parameters.
Returns
Stimulus object.
def CompoundPye.src.Parser.stimuli_creator.get_two_dim_dict ( )

Create a dictionary containing names and paths to all valid two dimensional stimuli classes.

Returns
Dictionary with name of the classes as keys and paths to their python-files as values.