Package qubx :: Module fit_robot :: Class Strategy
[hide private]
[frames] | no frames]

Class Strategy

source code

object --+
         |
        Strategy

Strategy
    module_name:   for pyenv
    run_later:     facility for deferred execution such as gobject.idle_add

Manages and executes the fitting script.  locals include Initial='Initial', Last=None.  Required but not provided:
    fit(variables=[par_names] or Last, {par_name}=value or Initial or Last, ...other par_names...)

Properties:
    locals        L{Anon} of names available in script; you add "fit"
    script        text of the script; empty for default
    initial       text of default script for this curve

Events:
    OnChange(Strategy, script)       script has changed
    OnWarn(Strategy)                 Curve param(s) removed; possibly invalid script

Instance Methods [hide private]
 
__init__(self, module_name, run_later=<__builtin__.function object>)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_script(self, x) source code
 
init(self, curve, rewrite=True)
Builds initial script from Curve; if rewrite: current = initial.
source code
 
renit(self, curve, attn=True)
Builds initial script, rewriting if not modified, OnWarn if pars dropped.
source code
 
run(self, expr=None)
Runs a script (or self.script) with extra locals: Last, high(name), low(name).
source code
 
add_line(self)
Appends a copy of the last line or initial script to the current script.
source code

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

Properties [hide private]
  locals
  script
  initial

Inherited from object: __class__

Method Details [hide private]

__init__(self, module_name, run_later=<__builtin__.function object>)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Property Details [hide private]

locals

Get Method:
unreachable(self)

script

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

initial

Get Method:
unreachable(self)