Package mvpa :: Package misc :: Module cmdline
[hide private]
[frames] | no frames]

Module cmdline

source code

Common functions and options definitions for command line

__docformat__ = 'restructuredtext'

Conventions: Every option (instance of optparse.Option) has prefix "opt". Lists of options has prefix opts (e.g. optsCommon).

Option name should be camelbacked version of .dest for the option.

Functions [hide private]
 
verboseCallback(option, optstr, value, parser)
Callback for -v|--verbose cmdline option
source code
 
debugCallback(option, optstr, value, parser)
Callback for -d|--debug cmdline option
source code
Variables [hide private]
  parser = OptionParser(add_help_option= False, conflict_handler...
  optHelp = <Option at 0x8b5cecc: -h/--help/--sos>
  optVerbose = <Option at 0x8b5cf0c: -v/--verbose/--verbosity>
Pre-cooked optparse's option to specify verbose level
  optsCommon = OptionGroup(parser, title= "Generic")
  optDebug = <Option at 0x8b5cf4c: -d/--debug>
  optClf = <Option at 0x8b5cf6c: --clf>
  optRadius = <Option at 0x8b5cfac: -r/--radius>
  optKNearestDegree = <Option at 0x8b6002c: -k/--k-nearest>
  optsKNN = OptionGroup(parser, "Specification of kNN")
  optSVMC = <Option at 0x8b600ec: -C/--svm-C>
  optSVMNu = <Option at 0x8b6012c: --nu/--svm-nu>
  optSVMGamma = <Option at 0x8b6018c: --gamma/--svm-gamma>
  optsSVM = OptionGroup(parser, "SVM specification")
  optCrossfoldDegree = <Option at 0x8b6024c: -c/--crossfold>
  optsGener = OptionGroup(parser, "Generalization estimates")
  optZScore = <Option at 0x8b602ec: --zscore>
  optTr = <Option at 0x8b6032c: --tr>
  optDetrend = <Option at 0x8b6038c: --detrend>
  optsPreproc = OptionGroup(parser, "Preprocessing options")
  optBoxLength = <Option at 0x8b6044c: --boxlength>
  optBoxOffset = <Option at 0x8b6048c: --boxoffset>
  optsBox = OptionGroup(parser, "Box options")
  optChunk = <Option at 0x8b6054c: --chunk>
  optChunkLimits = <Option at 0x8b6058c: --chunklimits>
  optsChunk = OptionGroup(parser, "Chunk options AKA Sample attr...

Imports: OptionParser, Option, OptionGroup, verbose, debug


Variables Details [hide private]

parser

Value:
OptionParser(add_help_option= False, conflict_handler= "resolve")

optsChunk

Value:
OptionGroup(parser, "Chunk options AKA Sample attributes XXX")