qubx :: data_types :: QubData :: Class QubData
[hide private]
[frames] | no frames]

Class QubData

source code

object --+
         |
        QubData
Known Subclasses:

Base class for an open data file.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
dispose(self) source code
 
set_sampling(self, x) source code
 
get_stimulus(self, name, def_latency=0.0, def_known_amps=[0.0], def_add_deltas=True, def_delta=0.5, def_min_dur=1.0, def_value=1.0)
Returns the StimulusRecord, creating with defaults if needed.
source code
 
get_stimulus_at(self, name, f)
Returns the value of a stimulus variable at the sample index f.
source code
 
get_stimulus_idl(self, name, f, l)
Returns the idealized stimulus (firsts, lasts, classes, durations, amps) for named variable in sample range (f, l).
source code
 
read_session(self, qsf, progressf=<__builtin__.function object>) source code
 
saveAs(self, path=None, progressf=<__builtin__.function object>)
Writes the data according to file extension (default txt).
source code
 
pre_close(self) source code
 
save_session(self) source code
 
get_save_tables(self) source code
 
set_analog(self, i, analog) source code
 
get_overlays(self, i) source code
 
accept_computed(self, expr) source code
 
__onInsertSignal(self, i, undoing) source code
 
__connect_stim_signal_if(self, sig_ix) source code
 
__onRemovingSignal(self, i, undoing) source code
 
__onSetSignal(self, i, field, val, prev, undoing) source code
 
__onSetSegments(self, i, field, val, prev, undoing) source code
 
__onAddSeg(self, segm, f, l, start) source code
 
__onClearSegs(self, segm) source code
 
__onChangeBaseline(self) source code
 
__onExclusionChange(self, excl) source code
 
__onInsertStimulus(self, i, undoing) source code
 
__ensure_constant(self, name, default=1.0) source code
 
__onSetStimulus(self, i, field, val, prev, undoing) source code
 
get_segmentation_file(self, signal=0, latency=None, baseline_nodes=True)
Returns a list of SourceSeg corresponding to the whole file.
source code
 
get_segmentation(self, first_seg=None, last_seg=None, left=None, right=None, signal=0, latency=None, baseline_nodes=True)
Returns a list of all SourceSegs, modified by args.
source code
 
get_segmentation_indexed(self, first, last, signal=0, latency=None, baseline_nodes=True, group=None) source code
 
get_segmentation_list(self, list_name=None, signal=0, baseline_nodes=True, group=None) source code
 
update_idl(self, signal) source code

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

Instance Variables [hide private]
  list
currently showing SelectionList
  sampling
interval between data points, in seconds
  OnChangeBaselineNodes
WeakEvent(QubData, signal_index or -1)
  OnChangeField
WeakEvent(QubData, 'Name' or 'In Folder') when filename or path change, for qubx.table.ObjectTable
  OnChangeFits
WeakEvent(QubData, signal_index or -1, *reserved) when fit curve changes
  OnChangeIdealization
WeakEvent(QubData, signal_index or -1, *reserved) when idealized data changes
  OnChangeOverlaySource
WeakEvent(QubData, signal_index)
  OnChangeOverlays
WeakEvent(QubData, signal_index)
  OnChangePath
WeakEvent(QubData, path or "") when filename or path change
  OnChangeSamples
WeakEvent(QubData, signal_index or -1, *reserved) when sampled data changes
  OnChangeSampling
WeakEvent(QubData, sampling) when the sampling rate changes
  OnSaving
WeakEvent(QubData, qsf) when qsf (qubx.tree.Node) needs updating prior to save
  analog
list of QubData_Analog for each signal
  baseline
list of SigBaseline for each signal
  constants
qubx.table.SimpleTable with Name, Value
  exclusion
Exclusion -- idealization of erased regions
  fits
list of SigIdl for each signal
  ideal
list of SigIdl for each signal
  lists
SelectionLists
  notes
comment string for end-use
  overlays
list of SigOverlays (or None) for each signal
  path
folder/filename or ""
  qsf
qubx.tree.Node with metadata, saved as <whatever>.qsf
  seg
list of objects to hold per-segment attributes
  segmentation
Segmentation
  segments
qubx.table.SimpleTable of stats etc; auto-adds fields
  signals
qubx.table.SimpleTable with Name, Units, Scale, Offset, Filter, Filter Freq
  stimuli
qubx.table.SimpleTable with the same fields as StimulusRecord.
  trials
qubx.trialset.TrialSets #ivar store_fit_curves: True to save qsf['FitCurves'], default False to save space
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

get_segmentation(self, first_seg=None, last_seg=None, left=None, right=None, signal=0, latency=None, baseline_nodes=True)

source code 

Returns a list of all SourceSegs, modified by args.

Parameters:
  • first_seg
  • last_seg
  • left - time offset from start-of-each-seg
  • right - time offset from start-of-each-seg
  • signal - index in file.signals
  • latency - number of samples to shift the data rightwards (same f, l, and idealization)

Instance Variable Details [hide private]

list

currently showing SelectionList
Get Method:
unreachable(self)

sampling

interval between data points, in seconds
Get Method:
unreachable(self)
Set Method:
unreachable(self, x)
Delete Method:
'delta t (seconds)'