Package qubx :: Module extract
[hide private]
[frames] | no frames]

Module extract

source code

Panel to chop, process and save extracts of data.

Copyright 2008-2013 Research Foundation State University of New York This file is part of QUB Express.

QUB Express is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QUB Express is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License, named LICENSE.txt, in the QUB Express program directory. If not, see <http://www.gnu.org/licenses/>.

Classes [hide private]
  ExtractFace
  SourceSegTime
  SourceSegFunc
  SourceSegMinusFit
  SourceSegMinusNodes
  SourceSegResampled
  SourceSegAvg
  SourceSegAdd
  SourceSegSub
  SourceSegJoin
  SignalMenuEntry
Functions [hide private]
 
copy_segmentation(template, signal, no_filter=True) source code
 
make_test_signals(expr) source code
 
SafeName(nm)
Returns nm, modified to be a legal python identifier.
source code
 
parse_signal_expr(expr) source code
 
parse_signals_expr(expr) source code
 
build_custom_signal_segs(customs, segs_of_signal, signals, scope) source code
 
Extract(fname=None, silent=True, **kw)
Creates a new data file from (parts of) the currently showing data.
source code
Variables [hide private]
  RADIO_SPACE = 16
  CHKS_SPACE = 24
  SIGNAL_MENU_HELP = 'Enter a list of signals, separated by semi...
  MAX_SIGNAL_NAME_LEN = 16
  parse_signal_re = re.compile(r'([^ =]+) *= *(.*)')
  OTHER_SEG_ALL = 0
  OTHER_SEG_GROUP = 2
  OTHER_SEG_ONSCREEN = 1
  OTHER_SEL_ALL = 0
  OTHER_SEL_ONSCREEN = 1
  PROC_ADD = 2
  PROC_AVG = 1
  PROC_NONE = 0
  PROC_SUB = 3
  SIGNALS_ALL = 0
  SIGNALS_CUSTOM = 2
  SIGNALS_SOURCE = 1
  SOURCE_DATASOURCE = 0
  SOURCE_FILEGROUP = 3
  SOURCE_LIST = 1
  SOURCE_OTHER = 2
  SUBTRACT_FIT_CURVE = 1
  SUBTRACT_FIT_NODES = 2
  SUBTRACT_FIT_NONE = 0
  __package__ = 'qubx'
  e = 2.71828182846
  pi = 3.14159265359
  rdbk = 'Expired.'
  rdbreak = 'supporting'
  rdname = 'qubfast.txt'
Function Details [hide private]

Extract(fname=None, silent=True, **kw)

source code 

Creates a new data file from (parts of) the currently showing data. To extract some other selection of data (non-graphically defined), build a list of qubx.data_types.SourceSeg and use qubx.data_types.Save.

Keyword options:

* fname: overrides path_expr with a specific path/to/file.ext * silent (=True): doesn't graphically prompt the user for options * source - SOURCE_DATASOURCE, SOURCE_LIST, or SOURCE_OTHER * other_seg - OTHER_SEG_ALL, OTHER_SEG_ONSCREEN, or OTHER_SEG_GROUP * other_seg_group * other_sel - OTHER_SEL_ALL, OTHER_SEL_ONSCREEN, or OTHER_SEL_GROUP * limit_to_group - True to filter by Group column * limit_group - Group index for filtering (comes from List if DATASOURCE_LIST, else from Segments table) * signals - SIGNALS_ALL, SIGNALS_SOURCE, or SIGNALS_CUSTOM * signals_custom * no_filter: False to use "Data Source" filter settings * subtract_fit - SUBTRACT_FIT_NONE, SUBTRACT_FIT_CURVE, or SUBTRACT_FIT_NODES * resample * resample_kHz * process - PROC_NONE, PROC_AVG, PROC_ADD, or PROC_SUB * process_sub_trace * process_all * path_expr * open_after


Variables Details [hide private]

SIGNAL_MENU_HELP

Value:
'''Enter a list of signals, separated by semicolons ";"
For example:
  Current; Voltage
Instead of a signal name, you can define a function:
  I=Current; G=Current/((Voltage - (-60)) * 1e-3); V=Voltage
Or mix and match:
  Current; G=Current/((Voltage - (-60)) * 1e-3); Voltage

...