Package qubx :: Module data_fit :: Class FitDataSource
[hide private]
[frames] | no frames]

Class FitDataSource

source code

object --+
         |
        FitDataSource

Provides sampled and data to the CurveFit specification.

Instance Methods [hide private]
 
__init__(self, qubx)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_use_list(self, x) source code
 
set_use_together(self, x) source code
 
__onSwitchData(self, datas, data) source code
 
set_data(self, data) source code
 
__onChangeSignal(self, signal) source code
 
__onChangeSel(self, *args) source code
 
__onChangeData(self, *args) source code
 
__onChangeSamples(self, *args) source code
 
get_segmentation(self, signal=None)
Returns a list of SourceSeg corresponding to use_*
source code
 
gen_samples(self, chunks, main_hold=None, signal=None, maxlen=1048576, get_excluded=False)
Yields a SourceChunk with fields .samples and .sampling for each in chunks.
source code

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

Instance Variables [hide private]
  use_list
True to fit selections from the List
  use_together
False to fit selections one by one
  OnChange
WeakEvent() on any change including file
  OnChangeFile
WeakEvent()
  signal
zero-based index of active signal
Properties [hide private]
  data

Inherited from object: __class__

Method Details [hide private]

__init__(self, qubx)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

gen_samples(self, chunks, main_hold=None, signal=None, maxlen=1048576, get_excluded=False)

source code 

Yields a SourceChunk with fields .samples and .sampling for each in chunks.

Parameters:
  • chunks - list of SourceChunk
  • main_hold - qubx.task.GTK_Main_Hold if in a worker thread, or None in the main thread
  • signal - signal index, or None to use the chunk.signal
  • maxlen - chunks longer than this will be yielded in pieces
  • get_excluded - if True, yields sampled chunks even when included==False (if False, yields orig chunk when excluded).

Instance Variable Details [hide private]

use_list

True to fit selections from the List
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

use_together

False to fit selections one by one
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

Property Details [hide private]

data

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