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

Module select

Charts and stats

Copyright 2008-2011 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/>.


Version: 1.3.0

Classes [hide private]
  CriteriaDialog
  HistPlot
  OnePlot
  SelectCursor
  SelectFace
  SelectPlot
  TwoPlot
  XMeansCursor
  XMeansPlot
Functions [hide private]
 
AllPointsHistogram(yy, bin_count)
 
FieldLabel(table, field_name, is_log)
 
distance(x1, y1, x2, y2)
Returns the Euclidean distance between (x1, y1) and (x2, y2).
 
make_bins(lo, hi, n)
Returns (bins, bin_width) as (numpy.array[n], float).
 
rect_increasing(x0, y0, x1, y1)
 
rows_meeting_criteria(table, expr, row_count=None)
Variables [hide private]
  ALLOW_THREADS = 1
  BUFSIZE = 10000
  CENTROID_ALPHA = 0.2
  CLIP = 0
  COLOR_ACTIONS = ('select.actions', (0, 1, 0, 1))
  COLOR_EMPTY_BG = ('select.empty.bg', (1, 1, 1, 1))
  COLOR_EMPTY_BTN = ('select.empty.btn', (0.7, 0, 0.1, 1))
  COLOR_EMPTY_TEXT = ('select.empty.text', (0.1, 0, 0, 1))
  COLOR_PRESETS = ('select.presets', (0.3, 0.3, 1, 1))
  CRITERIA_HELP = 'Enter a boolean expression such as\n (...
  DRAG_ALPHA = 0.25
  DRAG_BORDER_ALPHA = 0.5
  ERR_CALL = 3
  ERR_DEFAULT = 0
  ERR_DEFAULT2 = 2084
  ERR_IGNORE = 0
  ERR_LOG = 5
  ERR_PRINT = 4
  ERR_RAISE = 2
  ERR_WARN = 1
  FLOATING_POINT_SUPPORT = 1
  FPE_DIVIDEBYZERO = 1
  FPE_INVALID = 8
  FPE_OVERFLOW = 2
  FPE_UNDERFLOW = 4
  False_ = False
  Inf = inf
  Infinity = inf
  MAXDIMS = 32
  MENU_STRAYDIUS = 2
  MENU_TIMEOUT = 360
  NAN = nan
  NINF = -inf
  NZERO = -0.0
  NaN = nan
  PINF = inf
  PZERO = 0.0
  RAISE = 2
  RECENT_COUNT = 5
  SHIFT_DIVIDEBYZERO = 0
  SHIFT_INVALID = 9
  SHIFT_OVERFLOW = 3
  SHIFT_UNDERFLOW = 6
  ScalarType = (<type 'int'>, <type 'float'>, <type 'complex'>, ...
  ShowDropped = False
  True_ = True
  UFUNC_BUFSIZE_DEFAULT = 10000
  UFUNC_PYVALS_NAME = 'UFUNC_PYVALS'
  UNSET_VALUE = 86738.82583
  VERSION = '1.3.9'
  WRAP = 1
  XMEANS_WEIGHT_HELP = 'Enter an expression such as\n Wei...
  __package__ = 'qubx'
  absolute = <ufunc 'absolute'>
  add = <ufunc 'add'>
  arccos = <ufunc 'arccos'>
  arccosh = <ufunc 'arccosh'>
  arcsin = <ufunc 'arcsin'>
  arcsinh = <ufunc 'arcsinh'>
  arctan = <ufunc 'arctan'>
  arctan2 = <ufunc 'arctan2'>
  arctanh = <ufunc 'arctanh'>
  bitwise_and = <ufunc 'bitwise_and'>
  bitwise_not = <ufunc 'invert'>
  bitwise_or = <ufunc 'bitwise_or'>
  bitwise_xor = <ufunc 'bitwise_xor'>
  c_ = <numpy.lib.index_tricks.CClass object at 0x914c64c>
  cast = {<type 'numpy.int64'>: <function <lambda> at 0x90c81b4>...
  ceil = <ufunc 'ceil'>
  conj = <ufunc 'conjugate'>
  conjugate = <ufunc 'conjugate'>
  cos = <ufunc 'cos'>
  cosh = <ufunc 'cosh'>
  deg2rad = <ufunc 'deg2rad'>
  degrees = <ufunc 'degrees'>
  divide = <ufunc 'divide'>
  e = 2.71828182846
  equal = <ufunc 'equal'>
  exp = <ufunc 'exp'>
  exp2 = <ufunc 'exp2'>
  expm1 = <ufunc 'expm1'>
  fabs = <ufunc 'fabs'>
  floor = <ufunc 'floor'>
  floor_divide = <ufunc 'floor_divide'>
  fmax = <ufunc 'fmax'>
  fmin = <ufunc 'fmin'>
  fmod = <ufunc 'fmod'>
  frexp = <ufunc 'frexp'>
  greater = <ufunc 'greater'>
  greater_equal = <ufunc 'greater_equal'>
  hypot = <ufunc 'hypot'>
  index_exp = <numpy.lib.index_tricks.IndexExpression object at ...
  inf = inf
  infty = inf
  invert = <ufunc 'invert'>
  isfinite = <ufunc 'isfinite'>
  isinf = <ufunc 'isinf'>
  isnan = <ufunc 'isnan'>
  ldexp = <ufunc 'ldexp'>
  left_shift = <ufunc 'left_shift'>
  less = <ufunc 'less'>
  less_equal = <ufunc 'less_equal'>
  little_endian = True
  log = <ufunc 'log'>
  log10 = <ufunc 'log10'>
  log1p = <ufunc 'log1p'>
  logaddexp = <ufunc 'logaddexp'>
  logaddexp2 = <ufunc 'logaddexp2'>
  logical_and = <ufunc 'logical_and'>
  logical_not = <ufunc 'logical_not'>
  logical_or = <ufunc 'logical_or'>
  logical_xor = <ufunc 'logical_xor'>
  main_globals = {'GInitiallyUnowned': <class 'gtk.__main__.GIni...
  maximum = <ufunc 'maximum'>
  mgrid = <numpy.lib.index_tricks.nd_grid object at 0x914c52c>
  minimum = <ufunc 'minimum'>
  mod = <ufunc 'remainder'>
  modf = <ufunc 'modf'>
  multiply = <ufunc 'multiply'>
  name_float = 'a number'
  name_int = 'an integer'
  nan = nan
  nbytes = {<type 'numpy.int64'>: 8, <type 'numpy.int16'>: 2, <t...
  negative = <ufunc 'negative'>
  newaxis = None
hash(x)
  not_equal = <ufunc 'not_equal'>
  ogrid = <numpy.lib.index_tricks.nd_grid object at 0x914c54c>
  ones_like = <ufunc 'ones_like'>
  pi = 3.14159265359
  power = <ufunc 'power'>
  r_ = <numpy.lib.index_tricks.RClass object at 0x914c5cc>
  rad2deg = <ufunc 'rad2deg'>
  radians = <ufunc 'radians'>
  reciprocal = <ufunc 'reciprocal'>
  remainder = <ufunc 'remainder'>
  right_shift = <ufunc 'right_shift'>
  rint = <ufunc 'rint'>
  s_ = <numpy.lib.index_tricks.IndexExpression object at 0x914c7ec>
  sctypeDict = {0: <type 'numpy.bool_'>, 1: <type 'numpy.int8'>,...
  sctypeNA = {'?': 'Bool', 'B': 'UInt8', 'Bool': <type 'numpy.bo...
  sctypes = {'complex': [<type 'numpy.complex64'>, <type 'numpy....
  sign = <ufunc 'sign'>
  signbit = <ufunc 'signbit'>
  sin = <ufunc 'sin'>
  sinh = <ufunc 'sinh'>
  sqrt = <ufunc 'sqrt'>
  square = <ufunc 'square'>
  subtract = <ufunc 'subtract'>
  tan = <ufunc 'tan'>
  tanh = <ufunc 'tanh'>
  true_divide = <ufunc 'true_divide'>
  trunc = <ufunc 'trunc'>
  typeDict = {0: <type 'numpy.bool_'>, 1: <type 'numpy.int8'>, 2...
  typeNA = {'?': 'Bool', 'B': 'UInt8', 'Bool': <type 'numpy.bool...
  typecodes = {'All': '?bhilqpBHILQPfdgFDGSUVO', 'AllFloat': 'fd...
Variables Details [hide private]

CRITERIA_HELP

Value:
'''Enter a boolean expression such as
        (Group == 1) and (Amp_1 > 2.0)

These names are available:
     field_name                    -- val. of field in this row; repla\
ce spaces with underscores; match capitalization
     row["field name"]             -- value of field in this row
     field_mean("field name")      -- mean value of field
...

ScalarType

Value:
(<type 'int'>,
 <type 'float'>,
 <type 'complex'>,
 <type 'long'>,
 <type 'bool'>,
 <type 'str'>,
 <type 'unicode'>,
 <type 'buffer'>,
...

XMEANS_WEIGHT_HELP

Value:
'''Enter an expression such as
        Weight
 or     1.0 / Std_1
 or     Std_1 and (1.0 / Std_1) or 0.0        (avoids division by zero\
)

These names are available:
     field_name                    -- val. of field in this row; repla\
...

cast

Value:
{<type 'numpy.int64'>: <function <lambda> at 0x90c81b4>, <type 'numpy.\
int16'>: <function <lambda> at 0x90c81ec>, <type 'numpy.object_'>: <fu\
nction <lambda> at 0x90c8224>, <type 'numpy.uint32'>: <function <lambd\
a> at 0x90c825c>, <type 'numpy.bool_'>: <function <lambda> at 0x90c829\
4>, <type 'numpy.float96'>: <function <lambda> at 0x90c82cc>, <type 'n\
umpy.int32'>: <function <lambda> at 0x90c8304>, <type 'numpy.string_'>\
: <function <lambda> at 0x90c833c>, <type 'numpy.uint32'>: <function <\
lambda> at 0x90c8374>, <type 'numpy.complex64'>: <function <lambda> at\
...

index_exp

Value:
<numpy.lib.index_tricks.IndexExpression object at 0x914c7ac>

main_globals

Value:
{'GInitiallyUnowned': <class 'gtk.__main__.GInitiallyUnowned'>,
 '__builtins__': <module '__builtin__' (built-in)>,
 '__doc__': None,
 '__file__': '/usr/bin/epydoc',
 '__name__': '__main__',
 '__package__': None,
 'cli': <function cli at 0x87bf3e4>,
 'os': <module 'os' from '/usr/lib/python2.6/os.pyc'>,
...

nbytes

Value:
{<type 'numpy.int64'>: 8, <type 'numpy.int16'>: 2, <type 'numpy.object\
_'>: 4, <type 'numpy.uint32'>: 4, <type 'numpy.bool_'>: 1, <type 'nump\
y.float96'>: 12, <type 'numpy.int32'>: 4, <type 'numpy.string_'>: 0, <\
type 'numpy.uint32'>: 4, <type 'numpy.complex64'>: 8, <type 'numpy.uni\
code_'>: 0, <type 'numpy.uint64'>: 8, <type 'numpy.int8'>: 1, <type 'n\
umpy.complex128'>: 16, <type 'numpy.uint8'>: 1, <type 'numpy.void'>: 0\
, <type 'numpy.float32'>: 4, <type 'numpy.complex192'>: 24, <type 'num\
py.uint16'>: 2, <type 'numpy.int32'>: 4, <type 'numpy.float64'>: 8}

sctypeDict

Value:
{0: <type 'numpy.bool_'>,
 1: <type 'numpy.int8'>,
 2: <type 'numpy.uint8'>,
 3: <type 'numpy.int16'>,
 4: <type 'numpy.uint16'>,
 5: <type 'numpy.int32'>,
 6: <type 'numpy.uint32'>,
 7: <type 'numpy.int32'>,
...

sctypeNA

Value:
{'?': 'Bool',
 'B': 'UInt8',
 'Bool': <type 'numpy.bool_'>,
 'Complex32': <type 'numpy.complex64'>,
 'Complex64': <type 'numpy.complex128'>,
 'Complex96': <type 'numpy.complex192'>,
 'D': 'Complex64',
 'F': 'Complex32',
...

sctypes

Value:
{'complex': [<type 'numpy.complex64'>,
             <type 'numpy.complex128'>,
             <type 'numpy.complex192'>],
 'float': [<type 'numpy.float32'>,
           <type 'numpy.float64'>,
           <type 'numpy.float96'>],
 'int': [<type 'numpy.int8'>,
         <type 'numpy.int16'>,
...

typeDict

Value:
{0: <type 'numpy.bool_'>,
 1: <type 'numpy.int8'>,
 2: <type 'numpy.uint8'>,
 3: <type 'numpy.int16'>,
 4: <type 'numpy.uint16'>,
 5: <type 'numpy.int32'>,
 6: <type 'numpy.uint32'>,
 7: <type 'numpy.int32'>,
...

typeNA

Value:
{'?': 'Bool',
 'B': 'UInt8',
 'Bool': <type 'numpy.bool_'>,
 'Complex32': <type 'numpy.complex64'>,
 'Complex64': <type 'numpy.complex128'>,
 'Complex96': <type 'numpy.complex192'>,
 'D': 'Complex64',
 'F': 'Complex32',
...

typecodes

Value:
{'All': '?bhilqpBHILQPfdgFDGSUVO',
 'AllFloat': 'fdgFDG',
 'AllInteger': 'bBhHiIlLqQpP',
 'Character': 'c',
 'Complex': 'FDG',
 'Float': 'fdg',
 'Integer': 'bhilqp',
 'UnsignedInteger': 'BHILQP'}