Package qubx :: Module fit_space :: Class FitControls
[hide private]
[frames] | no frames]

Class FitControls

source code

        object --+    
                 |    
toolspace.LayerSet --+
                     |
                    FitControls
Known Subclasses:

Toolspace layers to control a qubx.fit_robots.FitSession.

Instance Methods [hide private]
 
__init__(self, label='Fit', cLayer=('fit.layer', (1, 0.8, 0.33, 0.8)), cText=('fit.text', (0, 0.4, 0, 1)), cNumber=('fit.number', (0, 0, 0, 1)), cButton=('fit.button', (0.7, 0, 0, 1)), global_name='')
Creates a new layerset to control a qubx.fit_robot.FitRobot, creating the robot too if None provided.
source code
 
update_profile(self, settings=None, updates=None, curve_only=False) source code
 
__onPresetsPopup(self) source code
 
__use_curve_class(self, name) source code
 
__use_preset(self, name) source code
 
__onClickManagePresets(self, item) source code
 
__onClickAddPreset(self, item) source code
 
add_preset(self, name) source code
 
dispose(self)
If you didn't provide a robot to the constructor, call this when you're done to stop the robot thread.
source code
 
sync(self)
Waits for any previous robot commands to take effect before returning.
source code
 
synch(self)
Waits for any previous robot commands to take effect before returning.
source code
 
__onData(self, xx, yy, vvv, v_names) source code
 
__onWeight(self, weight_expr) source code
 
__onExpr(self, curve_name, curve_expr, params, param_vals, lo, hi, can_fit) source code
 
__onParam(self, index, name, value, lo, hi, can_fit) source code
 
__onMaxIter(self, max_iter) source code
 
__onToler(self, toler) source code
 
__onStrategy(self, script) source code
 
__onFitter(self, fitter_name) source code
 
__onStats(self, correlation, is_pseudo, std_err_est, ssr, r2, runs_prob) source code
 
__onStartFit(self) source code
 
__onIteration(self, param_vals, iteration) source code
 
__onEndFit(self) source code
 
write_test(self, fObj) source code
 
__expr_caption(self) source code
 
__onClickExpr(self, x, y, e) source code
 
__onClickWeight(self, x, y, e) source code
 
__onToggle(self, i) source code
 
__onClickValue(self, i) source code
 
__onScrollValue(self, i, x, y, e, o) source code
 
__onClickMore(self, i) source code
 
__onMoreOK(self, nm, value, lo, hi, can_fit) source code
 
__onModalClose(self) source code
 
__onClickCorrel(self, x, y, e) source code
 
__onClickStrategy(self, x, y, e) source code
 
__onClickFit(self, *args) source code
 
click_fit(self) source code
 
fit(self, wait=True, receiver=None) source code
 
nb_get_param_text(self) source code
 
nb_get_shape(self) source code
 
nb_get_headers(self) source code
 
nb_get_col(self, c) source code
 
nb_get_type(self) source code

Inherited from toolspace.LayerSet: activate, add_layer, deactivate, remove_layer

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  OnClickFit
WeakEvent() when Fit button is clicked, to override default behavior (self.robot.fit())
  robot
qubx.fit_robots.FitSession
Properties [hide private]
  param_names
  param_vals
  param_lo
  param_hi
  param_can_fit
  weight_expr
  curve_expr
  curve
  xx
  yy
  vvv
  v_names
  max_iter
  toler
  correlation
  correlation_is_pseudo
  std_err_est
  ssr
  r2
  runs_prob
  fitting

Inherited from toolspace.LayerSet: space

Inherited from object: __class__

Method Details [hide private]

__init__(self, label='Fit', cLayer=('fit.layer', (1, 0.8, 0.33, 0.8)), cText=('fit.text', (0, 0.4, 0, 1)), cNumber=('fit.number', (0, 0, 0, 1)), cButton=('fit.button', (0.7, 0, 0, 1)), global_name='')
(Constructor)

source code 

Creates a new layerset to control a qubx.fit_robot.FitRobot, creating the robot too if None provided.

Parameters:
  • label - string to identify the robot, if one is created
  • cLayer - colorref for floating panels
  • cText - colorref for static text in floating panels
  • cNumber - colorref for variable/editable text in floating panels
  • cButton - colorref for clickable text in floating panels
  • global_name - how self might be called globally, for scripting
Overrides: object.__init__

Property Details [hide private]

param_names

Get Method:
unreachable(self)

param_vals

Get Method:
unreachable(self)

param_lo

Get Method:
unreachable(self)

param_hi

Get Method:
unreachable(self)

param_can_fit

Get Method:
unreachable(self)

weight_expr

Get Method:
unreachable(self)

curve_expr

Get Method:
unreachable(self)

curve

Get Method:
unreachable(self)
Delete Method:
'copy of robot\'s qubx.fit.Curve, for computing fit curves on gui thre\
ad'

xx

Get Method:
unreachable(self)

yy

Get Method:
unreachable(self)

vvv

Get Method:
unreachable(self)

v_names

Get Method:
unreachable(self)

max_iter

Get Method:
unreachable(self)

toler

Get Method:
unreachable(self)

correlation

Get Method:
unreachable(self)

correlation_is_pseudo

Get Method:
unreachable(self)

std_err_est

Get Method:
unreachable(self)

ssr

Get Method:
unreachable(self)

r2

Get Method:
unreachable(self)

runs_prob

Get Method:
unreachable(self)

fitting

Get Method:
unreachable(self)