topo :: command :: pylabplots :: measure_orientation_contrast :: Class measure_orientation_contrast
[hide private]
[frames] | no frames]

Class measure_orientation_contrast

source code

                                    object --+                        
                                             |                        
             param.parameterized.Parameterized --+                    
                                                 |                    
         param.parameterized.ParameterizedFunction --+                
                                                     |                
      analysis.featureresponses.MeasureResponseCommand --+            
                                                         |            
analysis.featureresponses.SinusoidalMeasureResponseCommand --+        
                                                             |        
                 analysis.featureresponses.FeatureCurveCommand --+    
                                                                 |    
                        analysis.featureresponses.UnitCurveCommand --+
                                                                     |
                                                                    measure_orientation_contrast

Measures the response to a center sine grating disk and a surround sine grating ring at different contrasts of the central disk.

The central disk is set to the preferred orientation of the unit to be measured. The surround disk orientation (relative to the central grating) and contrast can be varied, as can the size of both disks.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__call__(self, **params)
Measure the response to the specified pattern and store the data in each sheet.
source code
 
_feature_list(self, p)
Return the list of features to vary; must be implemented by each subclass.
source code

Inherited from param.parameterized.ParameterizedFunction: __reduce__, script_repr

Inherited from param.parameterized.Parameterized: __getstate__, __init__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

Inherited from param.parameterized.Parameterized (private): _add_parameter, _instantiate_param, _set_name, _setup_params

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from param.parameterized.ParameterizedFunction: instance

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Static Methods [hide private]

Inherited from param.parameterized.ParameterizedFunction: __new__

Class Variables [hide private]
  pattern_presenter = param.Callable(default= PatternPresenter(p...
Callable object that will present a parameter-controlled pattern to a set of Sheets.
  size = None
The size of the pattern to present.
  sizecenter = param.Number(default= 0.5, bounds= (0, None), doc...
The size of the central pattern to present.
  sizesurround = param.Number(default= 1.0, bounds= (0, None), d...
The size of the surround pattern to present.
  thickness = param.Number(default= 0.5, bounds= (0, None), soft...
Ring thickness.
  contrastsurround = param.Number(default= 100, bounds= (0, 100)...
Contrast of the surround.
  contrastcenter = param.Number(default= 100, bounds= (0, 100), ...
Contrast of the center.
  x_axis = param.String(default= 'orientationsurround', constant...
Parameter to use for the x axis of tuning curves.
  orientation_center = param.Number(default= 0.0, softbounds= (0...
Orientation of the center grating patch
  units = param.String(default= "%")
Units for labeling the curve_parameters in figure legends.
  static_parameters = param.List(default= ["x", "y", "sizecenter...
List of names of parameters of this class to pass to the pattern_presenter as static parameters, i.e.
  curve_parameters = param.Parameter([{"contrastsurround": 30}, ...
List of parameter values for which to measure a curve.
  or_surrounds = []
list() -> new list list(sequence) -> new list initialized from sequence's items
  __params = {'apply_output_fns': <param.Boolean object at 0xb22...
dict() -> new empty dictionary.
  name = <param.parameterized.String object at 0xb245764>
String identifier for this object.

Inherited from analysis.featureresponses.UnitCurveCommand: coords

Inherited from analysis.featureresponses.FeatureCurveCommand: num_orientation, sheet

Inherited from analysis.featureresponses.SinusoidalMeasureResponseCommand: frequencies, num_phase, scale

Inherited from analysis.featureresponses.MeasureResponseCommand: apply_output_fns, display, duration, generator_sheets, offset, sheet_views_prefix, subplot, weighted_average

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, **params)
(Call operator)

source code 
Measure the response to the specified pattern and store the data in each sheet.
Overrides: param.parameterized.ParameterizedFunction.__call__

_feature_list(self, p)

source code 
Return the list of features to vary; must be implemented by each subclass.
Overrides: analysis.featureresponses.MeasureResponseCommand._feature_list
(inherited documentation)

Class Variable Details [hide private]

pattern_presenter

Callable object that will present a parameter-controlled pattern to a set of Sheets. By default, uses a SineGrating presented for a short duration. By convention, most Topographica example files are designed to have a suitable activity pattern computed by that time, but the duration will need to be changed for other models that do not follow that convention.
Value:
param.Callable(default= PatternPresenter(pattern_generator= OrientationContrast(),\
 contrast_parameter= "weber_contrast"))

sizecenter

The size of the central pattern to present.
Value:
param.Number(default= 0.5, bounds= (0, None), doc= """
        The size of the central pattern to present.""")

sizesurround

The size of the surround pattern to present.
Value:
param.Number(default= 1.0, bounds= (0, None), doc= """
        The size of the surround pattern to present.""")

thickness

Ring thickness.
Value:
param.Number(default= 0.5, bounds= (0, None), softbounds= (0, 1.5), doc= """Ring t\
hickness.""")

contrastsurround

Contrast of the surround.
Value:
param.Number(default= 100, bounds= (0, 100), doc= """Contrast of the surround.""")

contrastcenter

Contrast of the center.
Value:
param.Number(default= 100, bounds= (0, 100), doc= """Contrast of the center.""")

x_axis

Parameter to use for the x axis of tuning curves.
Value:
param.String(default= 'orientationsurround', constant= True)

orientation_center

Orientation of the center grating patch
Value:
param.Number(default= 0.0, softbounds= (0.0, numpy.pi), doc= """
        Orientation of the center grating patch""")

units

Units for labeling the curve_parameters in figure legends. The default is %, for use with contrast, but could be any units (or the empty string).
Value:
param.String(default= "%")

static_parameters

List of names of parameters of this class to pass to the pattern_presenter as static parameters, i.e. values that will be fixed to a single value during measurement.
Value:
param.List(default= ["x", "y", "sizecenter", "sizesurround", "orientationcenter", \
"thickness", "contrastcenter"])

curve_parameters

List of parameter values for which to measure a curve.
Value:
param.Parameter([{"contrastsurround": 30}, {"contrastsurround": 60}, {"contrastsur\
round": 80}, {"contrastsurround": 90}], doc= """
        List of parameter values for which to measure a curve.""")

__params

dict() -> new empty dictionary.
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs.
dict(seq) -> new dictionary initialized as if via:
    d = {}
    for k, v in seq:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

Value:
{'apply_output_fns': <param.Boolean object at 0xb22c56c>,
 'contrastcenter': <param.Number object at 0xb0c1d1c>,
 'contrastsurround': <param.Number object at 0xb0c1b6c>,
 'coords': <param.List object at 0xb22c22c>,
 'curve_parameters': <param.parameterized.Parameter object at 0xb245e2c>,
 'display': <param.Boolean object at 0xb22cbac>,
 'duration': <param.Number object at 0xb235734>,
 'frequencies': <param.List object at 0xb22c0ac>,
...