Package mvpa :: Package base :: Module externals
[hide private]
[frames] | no frames]

Module externals

source code

Helper to verify presence of external libraries and modules
Functions [hide private]
 
__check_shogun(bottom_version, custom_versions=[2456])
Check if version of shogun is high enough (or custom known) to be enabled in the testsuite
source code
 
exists(dep, force=False)
Test whether a known dependency is installed on the system.
source code
 
testAllDependencies(force=False)
Test for all known dependencies.
source code
Variables [hide private]
  _KNOWN = {'lars': 'import rpy; rpy.r.library(\'lars\')', 'libs...
  _VERIFIED = {'rpy': False}
  _caught_exceptions = [<type 'exceptions.ImportError'>, <type '...
Exceptions which are silently caught while running tests for externals

Imports: warning, debug, rpy


Function Details [hide private]

exists(dep, force=False)

source code 

Test whether a known dependency is installed on the system.

This method allows us to test for individual dependencies without testing all known dependencies. It also ensures that we only test for a dependency once.

Parameters:
  • dep (string) - The dependency key to test.
  • force (boolean) - Whether to force the test even if it has already been performed.

testAllDependencies(force=False)

source code 
Test for all known dependencies.
Parameters:
  • force (boolean) - Whether to force the test even if it has already been performed.

Variables Details [hide private]

_KNOWN

Value:
{'lars': 'import rpy; rpy.r.library(\'lars\')',
 'libsvm': 'import mvpa.clfs.libsvm._svm as __; x=__.convert2SVMNode',
 'pylab': 'import pylab as __',
 'rpy': 'import rpy',
 'sg_fixedcachesize': '__check_shogun(3043)',
 'shogun': 'import shogun as __',
 'shogun.lightsvm': 'import shogun.Classifier as __; x=__.SVMLight',
 'shogun.svrlight': 'from shogun.Regression import SVRLight as __'}

_caught_exceptions

Exceptions which are silently caught while running tests for externals
Value:
[<type 'exceptions.ImportError'>, <type 'exceptions.AttributeError'>]