Package qubx :: Module modelGTK :: Class GrabTool
[hide private]
[frames] | no frames]

Class GrabTool

source code

          object --+                
                   |                
      toolspace.Tool --+            
                       |            
dataGTK.QubData_BaseTool --+        
                           |        
      dataGTK.QubData_HiTool --+    
                               |    
         dataGTK.QubData_SelTool --+
                                   |
                                  GrabTool

As qubx.dataGTK.QubDataView.tool, lets user highlight data to initialize class Amp/Std/Cond/CondStd. If model.file.IeqFv: initializes baseline (Amp[0], Std[0]) from class 0, and (Cond[i], CondStd[i]) from class i, and if there are more measurements than classes (at multiple voltages) it curve-fits all those params together.

Instance Methods [hide private]
 
__init__(self, model, cls, prev_tool, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
onActivate(self)
Finds classes used in this model, and Voltage (signal or constant) from this data; sets up for 2 passes (2 measurements per class, at different Voltage) if model.file.IeqFv and Voltage isn't constant.
source code
 
__iterate(self) source code
 
__onSel(self, left, right)
Measures; sets 2sec timer to store measurement and go to next step.
source code
 
__onDone(self) source code
 
__measure(self, left, right, signal=None)
Returns the (mean, std) of signal, in the first onscreen segment, between left and right [seconds from segment start].
source code
 
__measure_seg(self, seg) source code
 
__show_confirm(self, msg, commit)
Displays the string msg for 2sec, with a Cancel button, then calls commit() unless Canceled.
source code
 
__onTimeout(self) source code
 
onOverlay(self, context, w, h) source code
 
onPress(self, x, y, e)
Intercepts button clicks; highlights like QubData_SelTool.
source code
 
onRelease(self, x, y, e)
Intercepts button clicks; highlights like QubData_SelTool.
source code
 
onDrag(self, x, y, e)
Intercepts button clicks; highlights like QubData_SelTool.
source code
 
regrab(self) source code

Inherited from dataGTK.QubData_SelTool: get_sel, get_sels, onDblClick, onKeyPress, onScroll

Inherited from toolspace.Tool: activate, deactivate, onDeactivate, onKeyRelease, onNeedPopup, onRoll

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

Instance Variables [hide private]

Inherited from dataGTK.QubData_SelTool: action, color, dblclick, sels

Inherited from toolspace.Tool: cursor, layers, space

Properties [hide private]

Inherited from dataGTK.QubData_SelTool: scroll

Inherited from object: __class__

Method Details [hide private]

__init__(self, model, cls, prev_tool, **kw)
(Constructor)

source code 

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

Parameters:
  • model - QubModelView
  • cls - index in model.file.classes to initialize, or -1 to initialize all
  • prev_tool - qubx.toolspace.Tool to activate on the qubx.dataGTK.QubDataView when this is done; typically the priorly active one
Overrides: object.__init__

onActivate(self)

source code 

Finds classes used in this model, and Voltage (signal or constant) from this data; sets up for 2 passes (2 measurements per class, at different Voltage) if model.file.IeqFv and Voltage isn't constant.

Overrides: toolspace.Tool.onActivate

onOverlay(self, context, w, h)

source code 
Overrides: toolspace.Tool.onOverlay

onPress(self, x, y, e)

source code 

Intercepts button clicks; highlights like QubData_SelTool.

Overrides: toolspace.Tool.onPress

onRelease(self, x, y, e)

source code 

Intercepts button clicks; highlights like QubData_SelTool.

Overrides: toolspace.Tool.onRelease

onDrag(self, x, y, e)

source code 

Intercepts button clicks; highlights like QubData_SelTool.

Overrides: toolspace.Tool.onDrag