Package topo :: Package analysis :: Module featureresponses :: Class FeatureCurveCommand
[hide private]
[frames] | no frames]

Class FeatureCurveCommand

source code


A callable Parameterized command for measuring tuning curves.
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
 
_compute_curves(self, p, sheet, val_format='%s')
Compute a set of curves for the specified sheet, using the specified val_format to print a label for each value of a curve_parameter.
source code
 
_feature_list(self, p)
Return the list of features to vary; must be implemented by each subclass.
source code
 
_sheetview_unit(self, sheet, sheet_coord, map_name, default=0.0)
Look up and return the value of a SheetView for a specified unit.
source code

Inherited from param.parameterized.ParameterizedFunction: __reduce__, __str__, script_repr

Inherited from param.parameterized.Parameterized: __getstate__, __init__, __repr__, __setstate__, 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 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]
  __abstract = True
bool(x) -> bool
  curve_parameters = param.Parameter([{"contrast": 30}, {"contra...
List of parameter values for which to measure a curve.
  name = <param.parameterized.String object at 0xb20db6c>
String identifier for this object.
  num_orientation = param.Integer(default= 12)
Number of orientations to test.
  sheet = param.ObjectSelector(default= None, doc= ...
Name of the sheet to use in measurements.
  static_parameters = param.List(default= [])
List of names of parameters of this class to pass to the pattern_presenter as static parameters, i.e.
  units = param.String(default= '%', doc= ...
Units for labeling the curve_parameters in figure legends.
  x_axis = param.String(default= 'orientation', doc= ...
Parameter to use for the x axis of tuning curves.

Inherited from SinusoidalMeasureResponseCommand: frequencies, num_phase, pattern_presenter, scale

Inherited from 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: MeasureResponseCommand._feature_list
(inherited documentation)

Class Variable Details [hide private]

__abstract

bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.

Value:
True

curve_parameters

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

sheet

Name of the sheet to use in measurements.
Value:
param.ObjectSelector(default= None, doc= """
        Name of the sheet to use in measurements.""")

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= [])

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= '%', doc= """
        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).""")

x_axis

Parameter to use for the x axis of tuning curves.
Value:
param.String(default= 'orientation', doc= """
        Parameter to use for the x axis of tuning curves.""")