File: __init__.py

package info (click to toggle)
mdp 3.6-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,500 kB
  • sloc: python: 25,503; makefile: 9; sh: 8
file content (11 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
import os
import mdp

# wrap the mdp.test function and set the module path to bimdp path
infodict = mdp.NodeMetaclass._function_infodict(mdp.test)
idx = infodict["argnames"].index('mod_loc')
defaults = list(infodict['defaults'])
defaults[idx] = os.path.dirname(__file__)
infodict['defaults'] = tuple(defaults)

test = mdp.NodeMetaclass._wrap_function(mdp.test, infodict)